Where’s TimerProc Function?
Read my last post WinAPI CallBack functions, and found no reference of TimerProc function mentioned in Microsoft’s documentation for SetTimer function! Confused?
If you read the first line of Microsoft’s documentation for TimerProc it says
The TimerProc function is an application-defined callback function that processes…
Read ahead and the last sentence of the same paragraph says :
TimerProc is a placeholder for the application-defined function name.
So the TimerProc function is included in the documentation to describe how the function handling the CallBack initiated by SetTimer function is to be defined in the application. And it’s absolutely not necessary to name that function as documented. The callback function can be named anything and as long as it confirms to parameter definitions as described.
So when you find a function ending with a “Proc”, it’s got be a description of how a function should be defined for handling the callback initiated by a particular WinAPI function.

[...] Where’s TimerProc Function? [...]
Pingback by Just Looking Back « Jalaj — May 28, 2007 @ 6:25 am