shellexecuteEx 得不到 进程句柄, 有其他方法么?
给它任何文件的名字,它都能识别出来并打开它,使用ShellExecute/ShellExecuteEx是较好的方法。现在我想得到打开的程序或实例的句柄, 得不到。 察看msdn-ShellExecuteEx,
hProcess
Handle to the newly started application. This member is set on return and is always NULL unless fMask is set to SEE_MASK_NOCLOSEPROCESS. Even if fMask is set to SEE_MASK_NOCLOSEPROCESS, hProcess will be NULL if no process was launched. For example, if a document to be launched is a URL and an instance of Microsoft® Internet Explorer is already running, it will display the document. No new process is launched, and hProcess will be NULL.
确实不行。
请问有没有其他的方式可以得到句柄呢? 找了一天没有找到合适的方法