disable defining ntstatus codes in windows.h/winnt.h when using ndk
[reactos.git] / rosapps / tests / apc / apc.c
index 51eaf6a..8ff1c00 100644 (file)
@@ -1,9 +1,9 @@
-#include <stdarg.h>
-#include <string.h>
 #include <stdio.h>
+#include <string.h>
+#define WIN32_NO_STATUS
 #include <windows.h>
-#include <ddk/ntddk.h>
-#include <rosrtl/string.h>
+#define NTOS_MODE_USER
+#include <ndk/ntndk.h>
 
 HANDLE OutputHandle;
 HANDLE InputHandle;
@@ -22,7 +22,7 @@ int main(int argc, char* argv[])
    NTSTATUS Status;
    HANDLE FileHandle;
    OBJECT_ATTRIBUTES ObjectAttributes;
-   UNICODE_STRING FileName = ROS_STRING_INITIALIZER(L"\\C:\\a.txt");
+   UNICODE_STRING FileName = RTL_CONSTANT_STRING(L"\\C:\\a.txt");
    IO_STATUS_BLOCK IoStatus;
    CHAR Buffer[256];
    HANDLE EventHandle;