#include <ndk/ntndk.h>
#include "kmtest.h"
-//#define NDEBUG
+#define NDEBUG
#include "debug.h"
/* PRIVATE FUNCTIONS ***********************************************************/
IN LONG TimerHighValue)
{
- DPRINT("Timer Apc called!\n");
ULONG *ApcCount = (ULONG *)TimerContext;
+ DPRINT("Timer Apc called!\n");
(*ApcCount)++;
}
+/* PUBLIC FUNCTIONS *************************************************************/
VOID
-ExTimerTest()
+ExTimerTest(HANDLE KeyHandle)
{
UNICODE_STRING TimerName;
OBJECT_ATTRIBUTES ObjectAttributes;
Status = ZwClose(TimerHandle);
ok(Status == STATUS_SUCCESS, "ZwClose failed with Status=0x%08lX", Status);
- FinishTest("NTOSKRNL Executive Timer");
-}
-
-/* PUBLIC FUNCTIONS ***********************************************************/
-
-VOID
-NtoskrnlExecutiveTests()
-{
- ExTimerTest();
+ FinishTest(KeyHandle, L"ExTimerTest");
}