Platform SDK: DLLs, Processes, and Threads |
The TimerAPCProc function is an application-defined timer completion routine. Specify this address when calling the SetWaitableTimer function. The PTIMERAPCROUTINE type defines a pointer to this callback function. TimerAPCProc is a placeholder for the application-defined function name.
VOID CALLBACK TimerAPCProc( LPVOID lpArgToCompletionRoutine // data value DWORD dwTimerLowValue // timer low value DWORD dwTimerHighValue // timer high value );
This function does not return a value.
The completion routine is executed by the thread that activates the timer using SetWaitableTimer. However, the thread must be in an alertable state. For more information, see Asynchronous Procedure Calls.
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 98.
Header: Declared in Winbase.h; include Windows.h.
Synchronization Overview, Synchronization Functions, FILETIME, SetWaitableTimer