diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-28 08:47:17 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-28 08:47:17 -0800 |
commit | 17b9727300cb7dd226d88654315c67f55b172e0c (patch) | |
tree | 53e7be2deb0a37d8bca3004c0aaeb7caadf787ba | |
parent | 6148b137122a6893903bc9462f03e8edf333f5df (diff) | |
download | psutil-fix-ntext.h.tar.gz |
try to fix ntext.hfix-ntext.h
-rw-r--r-- | psutil/arch/windows/ntextapi.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/psutil/arch/windows/ntextapi.h b/psutil/arch/windows/ntextapi.h index 9530926b..3927edf3 100644 --- a/psutil/arch/windows/ntextapi.h +++ b/psutil/arch/windows/ntextapi.h @@ -160,10 +160,6 @@ typedef struct { ULONG FirstLevelTbFills; ULONG SecondLevelTbFills; ULONG SystemCalls; - ULONGLONG CcTotalDirtyPages; // since THRESHOLD - ULONGLONG CcDirtyPageThreshold; // since THRESHOLD - LONGLONG ResidentAvailablePages; // since THRESHOLD - ULONGLONG SharedCommittedPages; // since THRESHOLD } _SYSTEM_PERFORMANCE_INFORMATION; typedef struct { @@ -184,8 +180,7 @@ typedef enum _KTHREAD_STATE { Waiting, Transition, DeferredReady, - GateWaitObsolete, - WaitingForProcessInSwap, + GateWait, MaximumThreadState } KTHREAD_STATE, *PKTHREAD_STATE; @@ -234,8 +229,8 @@ typedef enum _KWAIT_REASON { typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO_EX { PVOID Object; - ULONG_PTR UniqueProcessId; - ULONG_PTR HandleValue; + HANDLE UniqueProcessId; + HANDLE HandleValue; ULONG GrantedAccess; USHORT CreatorBackTraceIndex; USHORT ObjectTypeIndex; @@ -264,7 +259,7 @@ typedef struct _SYSTEM_THREAD_INFORMATION2 { ULONG WaitTime; PVOID StartAddress; CLIENT_ID ClientId; - KPRIORITY Priority; + LONG Priority; LONG BasePriority; ULONG ContextSwitches; ULONG ThreadState; @@ -281,7 +276,7 @@ typedef struct _SYSTEM_EXTENDED_THREAD_INFORMATION { PVOID StackBase; PVOID StackLimit; PVOID Win32StartAddress; - PTEB TebBase; // since VISTA + PTEB TebBase; ULONG_PTR Reserved2; ULONG_PTR Reserved3; ULONG_PTR Reserved4; @@ -321,7 +316,7 @@ typedef struct _SYSTEM_PROCESS_INFORMATION2 { LARGE_INTEGER ReadTransferCount; LARGE_INTEGER WriteTransferCount; LARGE_INTEGER OtherTransferCount; -SYSTEM_THREAD_INFORMATION Threads[1]; + SYSTEM_THREAD_INFORMATION Threads[1]; } SYSTEM_PROCESS_INFORMATION2, *PSYSTEM_PROCESS_INFORMATION2; #define SYSTEM_PROCESS_INFORMATION SYSTEM_PROCESS_INFORMATION2 |