TimerProc callback function
Applies to: desktop apps only
An application-defined callback function that processes WM_TIMER messages. The TIMERPROC type defines a pointer to this callback function. TimerProc is a placeholder for the application-defined function name.
Syntax
VOID CALLBACK TimerProc( __in HWND hwnd, __in UINT uMsg, __in UINT_PTR idEvent, __in DWORD dwTime );
Parameters
- hwnd [in]
-
Type: HWND
A handle to the window associated with the timer.
- uMsg [in]
-
Type: UINT
The WM_TIMER message.
- idEvent [in]
-
Type: UINT_PTR
The timer's identifier.
- dwTime [in]
-
Type: DWORD
The number of milliseconds that have elapsed since the system was started. This is the value returned by the GetTickCount function.
Return value
This function does not return a value.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012
- 1/26/2012
- FredHeb1
It is not unreasonable for Windows to handle exceptions within a callback in this way.
Developers who want to handle exceptions need install their own handlers inside the callback.
But a note is helpful.
- 6/11/2009
- HardwareHang
- 6/25/2009
- HardwareHang
- 11/25/2008
- SoftwareDave