Platform SDK: DLLs, Processes, and Threads

WaitOrTimerCallback

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
);

Parameters

lpParameter
[in] Receives the thread data passed to the function using a parameter of the CreateTimerQueueTimer or RegisterWaitForSingleObject function.
TimerOrWaitFired
[in] If this parameter is TRUE, the wait timed out. If this parameter is FALSE, the wait event has been signaled.

Return Values

This function does not return a value.

Remarks

This callback function must not call the TerminateThread function.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Winbase.h; include Windows.h.

See Also

Synchronization Overview, Synchronization Functions, CreateTimerQueueTimer, RegisterWaitForSingleObject