想问一下: 其中第二个参数fMask 的取值为 SEE_MASK_NOCLOSEPROCESS  ,表示什么意思?

解决方案 »

  1.   

    字面意思是 不关闭进程 SEE_MASK_NOCLOSEPROCESS  
    Use to indicate that the hProcess member receives the process handle. This handle is typically used to allow an application to find out when a process created with ShellExecuteEx terminates. In some cases, such as when execution is satisfied through a DDE conversation, no handle will be returned. The calling application is responsible for closing the handle when it is no longer needed. 我英文不太好 ,,
    好像是应用你现在程序的进程句柄 创建个子进程吧。
      

  2.   

    The SHELLEXECUTEINFO structure contains information used by the ShellExecuteEx function.typedef struct _SHELLEXECUTEINFO {   // sei  
        DWORD     cbSize; 
        ULONG     fMask; 
        HWND      hwnd; 
        LPCSTR    lpVerb; 
        LPCSTR    lpFile; 
        LPCSTR    lpParameters; 
        LPCSTR    lpDirectory; 
        int       nShow; 
        HINSTANCE hInstApp; 
     
        // Optional members 
        LPVOID lpIDList; 
        LPCSTR lpClass; 
        HKEY   hkeyClass; 
        DWORD  dwHotKey; 
        HANDLE hIcon; 
        HANDLE hProcess; 
    } SHELLEXECUTEINFO, FAR *LPSHELLEXECUTEINFO; 另外,最后一个参数hProcess是进程ID 还是进程句柄? 
     
      

  3.   

    另外,最后一个参数hProcess是进程ID 还是进程句柄?  
    ----------------------------------------------
    囧,看类型也知道是个HANDLE句柄了