https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3bdc062fb92c2fb9a78c6…
commit 3bdc062fb92c2fb9a78c65f16bb9f30e8659b5e3
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun May 29 00:57:30 2022 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 15 12:55:08 2023 +0200
[PSDK][NDK] Update SYSTEM_PERFORMANCE_INFORMATION definition with Win7+ members.
See
https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/pe…
for more information.
---
sdk/include/ndk/extypes.h | 8 ++++++++
sdk/include/psdk/winternl.h | 6 ++++++
2 files changed, 14 insertions(+)
diff --git a/sdk/include/ndk/extypes.h b/sdk/include/ndk/extypes.h
index 9702cd2b6ea..6cc77cb1d7c 100644
--- a/sdk/include/ndk/extypes.h
+++ b/sdk/include/ndk/extypes.h
@@ -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
diff --git a/sdk/include/psdk/winternl.h b/sdk/include/psdk/winternl.h
index c92543b2e31..af2301842b5 100644
--- a/sdk/include/psdk/winternl.h
+++ b/sdk/include/psdk/winternl.h
@@ -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