字面意思是 不关闭进程 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. 我英文不太好 ,, 好像是应用你现在程序的进程句柄 创建个子进程吧。
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;
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. 我英文不太好 ,,
好像是应用你现在程序的进程句柄 创建个子进程吧。
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 还是进程句柄?
----------------------------------------------
囧,看类型也知道是个HANDLE句柄了