[PSDK][NDK] Update SYSTEM_PERFORMANCE_INFORMATION definition with Win7+ members.

See https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/performance.htm
for more information.
This commit is contained in:
Hermès Bélusca-Maïto 2022-05-29 00:57:30 +02:00
parent d5707eefe2
commit 3bdc062fb9
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 14 additions and 0 deletions

View file

@ -841,6 +841,14 @@ typedef struct _SYSTEM_PERFORMANCE_INFORMATION
ULONG FirstLevelTbFills;
ULONG SecondLevelTbFills;
ULONG SystemCalls;
#if (NTDDI_VERSION >= NTDDI_WIN7)
ULONGLONG CcTotalDirtyPages;
ULONGLONG CcDirtyPageThreshold;
#endif
#if (NTDDI_VERSION >= NTDDI_WIN8)
LONGLONG ResidentAvailablePages;
ULONGLONG SharedCommittedPages;
#endif
} SYSTEM_PERFORMANCE_INFORMATION, *PSYSTEM_PERFORMANCE_INFORMATION;
// Class 3

View file

@ -490,7 +490,13 @@ typedef struct _SYSTEM_BASIC_INFORMATION
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
{
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN8)
BYTE Reserved1[344];
#elif (_WIN32_WINNT >= _WIN32_WINNT_WIN7)
BYTE Reserved1[328];
#else
BYTE Reserved1[312];
#endif
} SYSTEM_PERFORMANCE_INFORMATION, *PSYSTEM_PERFORMANCE_INFORMATION;
typedef struct _SYSTEM_TIMEOFDAY_INFORMATION