Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

TimerCallback callback function

Applications implement this callback if they call the SetThreadpoolTimer function to start a worker thread for the timer object.

The PTP_TIMER_CALLBACK type defines a pointer to this callback function. TimerCallback is a placeholder for the application-defined function name.


VOID CALLBACK TimerCallback(
  _Inout_     PTP_CALLBACK_INSTANCE Instance,
  _Inout_opt_ PVOID                 Context,
  _Inout_     PTP_TIMER             Timer


Instance [in, out]

A TP_CALLBACK_INSTANCE structure that defines the callback instance. Applications do not modify the members of this structure.

This structure can be passed to one of the following functions:

Context [in, out, optional]

The application-defined data.

Timer [in, out]

A TP_TIMER structure that defines the timer object that generated the callback.

Return value

This function does not return a value.


Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]


WinBase.h on Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2 (include Windows.h);
Threadpoolapiset.h on Windows 8 and Windows Server 2012

See also




Community Additions

© 2015 Microsoft