Platform SDK: DLLs, Processes, and Threads |
The WaitOrTimerCallback function is an application-defined function that serves as the starting address for a thread. Specify this address when calling the CreateTimerQueueTimer, RegisterWaitForSingleObject function.
The WAITORTIMERCALLBACK type defines a pointer to this callback function. WaitOrTimerCallback is a placeholder for the application-defined function name.
VOID CALLBACK WaitOrTimerCallback( PVOID lpParameter, // thread data BOOLEAN TimerOrWaitFired // reason );
This function does not return a value.
This callback function must not call the TerminateThread function.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Synchronization Overview, Synchronization Functions, CreateTimerQueueTimer, RegisterWaitForSingleObject