Platform SDK: DLLs, Processes, and Threads |
The UnregisterWait function cancels a registered wait operation issued by the RegisterWaitForSingleObject function.
To use a completion event, call the UnregisterWaitEx function.
BOOL UnregisterWait( HANDLE WaitHandle // wait handle );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
UnregisterWait does not wait for all callback functions associated with the timer to complete.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Synchronization Overview, Synchronization Functions, RegisterWaitForSingleObject, UnregisterWaitEx, Thread Pooling