disable defining ntstatus codes in windows.h/winnt.h when using ndk
[reactos.git] / rosapps / tests / terminate / terminate.c
index 986de45..7fd749f 100644 (file)
@@ -1,11 +1,10 @@
 #define UNICODE
-
-#define NTOS_MODE_USER
-#include <ntos.h>
+#define WIN32_NO_STATUS
 #include <windows.h>
 #include <stdio.h>
+#define NTOS_MODE_USER
+#include <ndk/ntndk.h>
 
-#define DBG
 #define NDEBUG
 #include <debug.h>
 
@@ -38,7 +37,7 @@ main(int argc, char *argv[])
   DWORD z = 0;
 
   context.ContextFlags=CONTEXT_CONTROL;
-  
+
   while (z < 50)
     {
       z++;
@@ -48,15 +47,15 @@ main(int argc, char *argv[])
                          NULL,
                          0,
                          &thread_id);
-      
+
       if(!thread)
        {
          printf("Error: could not create thread ...\n");
          ExitProcess(0);
        }
-      
+
       Sleep(1000);
-      
+
       printf("T");
       if ((z % 5) == 0)
        {
@@ -67,7 +66,7 @@ main(int argc, char *argv[])
       printf("S");
       SuspendThread(thread);
       printf("R");
-      ResumeThread(thread);      
+      ResumeThread(thread);
       TerminateThread(thread, 0);
     }