#include <windows.h>
#include <stdio.h>
Go to the source code of this file.
◆ main()
Definition at line 14 of file apc2.c.
15{
20
22
23 if (!hTimer)
24 {
25 printf(
"CreateWaitableTimer failed!\n");
26 return 0;
27 }
28
30
32 hTimer,
34 2001 ,
38
39 if (!bSuccess)
40 {
41 printf(
"SetWaitableTimer failed!\n");
42 return 0;
43 }
44
46 {
48 }
49
51 return 0;
52}
VOID CALLBACK TimerApcProc(LPVOID lpArg, DWORD dwTimerLowValue, DWORD dwTimerHighValue)
DWORD WINAPI SleepEx(IN DWORD dwMilliseconds, IN BOOL bAlertable)
BOOL WINAPI SetWaitableTimer(IN HANDLE hTimer, IN const LARGE_INTEGER *pDueTime, IN LONG lPeriod, IN PTIMERAPCROUTINE pfnCompletionRoutine OPTIONAL, IN OPTIONAL LPVOID lpArgToCompletionRoutine, IN BOOL fResume)
_In_ WDFTIMER _In_ LONGLONG DueTime
#define CreateWaitableTimer
◆ TimerApcProc()