disable defining ntstatus codes in windows.h/winnt.h when using ndk
[reactos.git] / rosapps / sysutils / tlist / tlist.c
index 43e00a2..aed9089 100644 (file)
@@ -1,20 +1,21 @@
-/* $Id$
- *
+/*
  * ReactOS Project
  * TList
  *
  * Copyright (c) 2000,2001 Emanuele Aliberti
  */
 #include <reactos/buildno.h>
+#define WIN32_NO_STATUS
+#include <windows.h>
 #define NTOS_MODE_USER
-#include <ntos.h>
+#include <ndk/ntndk.h>
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 
-#include <epsapi.h>
+#include <epsapi/epsapi.h>
 #include <getopt.h>
 
 #ifndef PAGE_SIZE
@@ -212,7 +213,6 @@ int STDCALL PrintProcessList (BOOL DisplayTree)
 {
   PSYSTEM_PROCESS_INFORMATION pInfo = NULL;
   PSYSTEM_PROCESS_INFORMATION pInfoBase = NULL;
-  LONG                        Length = 0;
   LPWSTR                      Module = L"";
   LPWSTR                      Title = L"";
 
@@ -377,7 +377,6 @@ int STDCALL PrintProcess (char * PidStr)
     VM_COUNTERS                 PsVm;
     PSYSTEM_PROCESS_INFORMATION pInfo = NULL;
     PSYSTEM_PROCESS_INFORMATION pInfoBase = NULL;
-    LONG                        pInfoBaseLength = 0;
     LPWSTR                      Module = L"";
     LPWSTR                      Title = L"";