Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
TIMERPROC Timerproc;
VOID Timerproc(
HWND unnamedParam1,
UINT unnamedParam2,
UINT_PTR unnamedParam3,
DWORD unnamedParam4
)
{...}
Parameters
unnamedParam1
Type: HWND
A handle to the window associated with the timer. This parameter is typically named hWnd.
unnamedParam2
Type: UINT
The WM_TIMER message. This parameter is typically named uMsg.
unnamedParam3
Type: UINT_PTR
The timer's identifier. This parameter is typically named idEvent.
unnamedParam4
Type: DWORD
The number of milliseconds that have elapsed since the system was started. This is the value returned by the GetTickCount function. This parameter is typically named dwTime.
Return value
None
Remarks
Note
The parameters are defined in the header with no names: typedef VOID (CALLBACK* TIMERPROC)(HWND, UINT, UINT_PTR, DWORD);. Therefore, the syntax block lists them as unnamedParam1 - unnamedParam4. You can name these parameters anything in your app. However, they are usually named as shown in the parameter descriptions.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | winuser.h (include Windows.h) |
See also
Conceptual
Reference