Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

TimerAPCProc (Delegates)
 
.
Summary
The TimerAPCProc Callback Function. An application-defined timer completion routine. Specify this address when calling the SetWaitableTimer function.

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

C# Definition:

private delegate void TimerAPCProc(IntPtr completionArg, UInt32 timerLowValue, UInt32 timerHighValue);

VB Definition:

''' <summary>
''' The TimerAPCProc Callback Function. An application-defined timer completion routine. Specify this address when calling the SetWaitableTimer function.
''' The PTIMERAPCROUTINE type defines a pointer to this callback function. TimerAPCProc is a placeholder for the application-defined function name.
''' http://msdn.microsoft.com/en-us/library/ms686786(v=vs.85).aspx
''' </summary> Orignal C++ Line: VOID CALLBACK TimerAPCProc( __in_opt LPVOID lpArgToCompletionRoutine, __in DWORD dwTimerLowValue, __in DWORD dwTimerHighValue);
''' <param name="completionArg">ByVal completionArg As IntPtr</param>
''' <param name="timerLowValue">ByVal timerLowValue As UInt32</param>
''' <param name="timerHighValue">ByVal timerHighValue As UInt32</param>
''' <remarks>The completion routine is executed by the thread that activates the timer using SetWaitableTimer. However, the thread must be in an alertable state.
''' For more information, see Asynchronous Procedure Calls.</remarks> http://msdn.microsoft.com/en-us/library/ms681951(v=vs.85).aspx
Private Delegate Sub TimerAPCProc(ByVal completionArg As IntPtr, ByVal timerLowValue As UInt32, ByVal timerHighValue As UInt32)

User-Defined Types:

None.

Parameters:

lpArgToCompletionRoutine [in, optional]     The value passed to the function using the lpArgToCompletionRoutine parameter of the SetWaitableTimer function.
dwTimerLowValue [in]             The low-order portion of the UTC-based time at which the timer was signaled. This value corresponds to the dwLowDateTime member of the FILETIME structure. For more information about UTC-based time, see System Time.
dwTimerHighValue [in]             The high-order portion of the UTC-based time at which the timer was signaled. This value corresponds to the dwHighDateTime member of the FILETIME structure.

Return Value:

This function does not return a value.

Remarks:

The completion routine is executed by the thread that activates the timer using SetWaitableTimer. However, the thread must be in an alertable state. For more information, see Asynchronous Procedure Calls. http://msdn.microsoft.com/en-us/library/ms681951(v=vs.85).aspx

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions