CVS: winex/include ntddk.h,1.7,1.8

[email protected] 12 Sep 2007 12:39:08 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/include ntddk.h,1.7,1.8Update of /var/lib/cvsd/cvsroot/winex/include
In directory agravaine:/tmp/cvs-serv12881/include

Modified Files:
	ntddk.h 
Log Message:

- added the VM_COUNTERS and SYSTEM_THREAD_INFORMATION structs to 'ntddk.h'.  This *should* be fine since it can't be included at the same time as 'winternl.h'


Index: ntddk.h
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/include/ntddk.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ntddk.h	12 Sep 2007 12:38:32 -0000	1.7
+++ ntddk.h	12 Sep 2007 12:39:06 -0000	1.8
@@ -653,6 +653,37 @@
         DWORD dwReserved;
 } SYSTEM_TIME_INFORMATION;
 
+
+typedef struct _SYSTEM_THREAD_INFORMATION{
+    FILETIME    ftKernelTime;
+    FILETIME    ftUserTime;
+    FILETIME    ftCreateTime;
+    DWORD       dwTickCount;
+    DWORD       dwStartAddress;
+    DWORD       dwOwningPID;
+    DWORD       dwThreadID;
+    DWORD       dwCurrentPriority;
+    DWORD       dwBasePriority;
+    DWORD       dwContextSwitches;
+    DWORD       dwThreadState;
+    DWORD       dwWaitReason;
+    DWORD       dwUnknown;
+} SYSTEM_THREAD_INFORMATION, *PSYSTEM_THREAD_INFORMATION;
+
+typedef struct _VM_COUNTERS_ {
+    ULONG PeakVirtualSize;
+    ULONG VirtualSize;
+    ULONG PageFaultCount;
+    ULONG PeakWorkingSetSize;
+    ULONG WorkingSetSize;
+    ULONG QuotaPeakPagedPoolUsage;
+    ULONG QuotaPagedPoolUsage;
+    ULONG QuotaPeakNonPagedPoolUsage;
+    ULONG QuotaNonPagedPoolUsage;
+    ULONG PagefileUsage;
+    ULONG PeakPagefileUsage;
+} VM_COUNTERS, *PVM_COUNTERS;
+
 typedef struct {
 /* System Information Class 0x05 */
     DWORD dwOffset;
@@ -668,19 +699,7 @@
     DWORD dwHandleCount;
     DWORD dwUnknown3;
     DWORD dwUnknown4;
-    struct __VM_COUNTERS__ {
-        ULONG PeakVirtualSize;
-        ULONG VirtualSize;
-        ULONG PageFaultCount;
-        ULONG PeakWorkingSetSize;
-        ULONG WorkingSetSize;
-        ULONG QuotaPeakPagedPoolUsage;
-        ULONG QuotaPagedPoolUsage;
-        ULONG QuotaPeakNonPagedPoolUsage;
-        ULONG QuotaNonPagedPoolUsage;
-        ULONG PagefileUsage;
-        ULONG PeakPagefileUsage;
-    } vmCounters;
+    VM_COUNTERS vmCounters;
     IO_COUNTERS ioCounters;
     SYSTEM_THREAD_INFORMATION ti[1];
 } SYSTEM_PROCESS_INFORMATION;