|
class WaitInfo {
public:
WaitInfo() {hProcess = NULL; notifyee = NULL; }
virtual ~WaitInfo() { }
void requestNotification(HANDLE pr, CWnd * tell);
static UINT UWM_PROCESS_TERMINATED;
protected:
HANDLE hProcess; // process handle
CWnd * notifyee; // window to notify
static UINT waiter(LPVOID p) { ((WaitInfo *)p)->waiter(); return 0; }
void waiter();
};
/****************************************************************************
* UWM_PROCESS_TERMINATED
* Inputs:
* WPARAM: ignored
* LPARAM: Process handle of process
* Result: LRESULT
* Logically void, 0, always
* Effect:
* Notifies the parent window that the process has been terminated
* Notes:
* It is the responsibility of the parent window to perform a
* ::CloseHandle operation on the handle. Otherwise there will be
* a handle leak.
****************************************************************************/
#define UWM_PROCESS_TERMINATED_MSG _T("UWM_PROCESS_TERMINATED-{F7113F80-6D03-11d3-9FDD-006067718D04}")
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here