Skip to content

Commit

Permalink
try to fix ntext.h
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Feb 28, 2019
1 parent 6148b13 commit 17b9727
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions psutil/arch/windows/ntextapi.h
Expand Up @@ -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 {
Expand All @@ -184,8 +180,7 @@ typedef enum _KTHREAD_STATE {
Waiting,
Transition,
DeferredReady,
GateWaitObsolete,
WaitingForProcessInSwap,
GateWait,
MaximumThreadState
} KTHREAD_STATE, *PKTHREAD_STATE;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 17b9727

Please sign in to comment.