Jalaj P. Jha

Technical & Miscellaneous Ramblings

Where’s TimerProc Function?

with one comment

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.

Written by Jalaj

February 10, 2007 at 7:40 am

Posted in Visual Basic, WinAPI

Tagged with

One Response

Subscribe to comments with RSS.

  1. [...] Where’s TimerProc Function? [...]


Leave a Reply