27{
36
37
43
44
47
48
56
57
62
63
71
72
73 DPRINT(
"Wait till timer expires\n");
76
77
83
84
85 DPRINT(
"Set timer with Apc (3)\n");
86 ApcCount = 0;
93
96
102 ok(ApcCount == 0,
"Incorrect count of TimerApcRoutine calls: %ld, should be 0\n", ApcCount);
103
104
105 DPRINT(
"Set timer with Apc (4)\n");
106 ApcCount = 0;
115
116
117 DPRINT(
"Set timer with Apc (5)\n");
126
127
131
135 ok(
CurrentState ==
TRUE,
"Incorrect CurrentState returned when cancelling the timer");
136 ok(ApcCount == 1,
"Incorrect count of TimerApcRoutine calls: %ld, should be 1\n", ApcCount);
137
138
141
144}
static VOID NTAPI TestTimerApcRoutine(IN PVOID TimerContext, IN ULONG TimerLowValue, IN LONG TimerHighValue)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
VOID(CALLBACK * PTIMER_APC_ROUTINE)(PVOID, ULONG, LONG)
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_In_ WDF_POWER_DEVICE_STATE PreviousState
_In_ WDFTIMER _In_ LONGLONG DueTime
_Out_opt_ PBOOLEAN CurrentState