65
65
#define MEM_LARGE_PAGES 0x20000000
66
66
#define MEM_DOS_LIM 0x40000000
67
67
#define MEM_4MB_PAGES 0x80000000
68
+ #define MEM_64K_PAGES (MEM_LARGE_PAGES | MEM_PHYSICAL)
68
69
70
+ #define MEM_UNMAP_WITH_TRANSIENT_BOOST 0x00000001
71
+ #define MEM_COALESCE_PLACEHOLDERS 0x00000001
72
+ #define MEM_PRESERVE_PLACEHOLDER 0x00000002
73
+ #define MEM_REPLACE_PLACEHOLDER 0x00004000
74
+ #define MEM_RESERVE_PLACEHOLDER 0x00040000
75
+
76
+ #define SEC_HUGE_PAGES 0x00020000
77
+ #define SEC_PARTITION_OWNER_HANDLE 0x00040000
78
+ #define SEC_64K_PAGES 0x00080000
69
79
#define SEC_BASED 0x00200000
70
80
#define SEC_NO_CHANGE 0x00400000
71
81
#define SEC_FILE 0x00800000
@@ -658,7 +668,7 @@ typedef struct _CFG_CALL_TARGET_LIST_INFORMATION
658
668
659
669
#if (PHNT_MODE != PHNT_MODE_KERNEL )
660
670
661
- #if (PHNT_VERSION >= PHNT_THRESHOLD )
671
+ #if (PHNT_VERSION >= PHNT_WIN8 )
662
672
663
673
NTSYSCALLAPI
664
674
NTSTATUS
@@ -850,6 +860,7 @@ typedef enum _PARTITION_INFORMATION_CLASS
850
860
SystemMemoryPartitionOpenDedicatedMemory , // 10
851
861
SystemMemoryPartitionMemoryChargeAttributes ,
852
862
SystemMemoryPartitionClearAttributes ,
863
+ SystemMemoryPartitionSetMemoryThresholds , // since WIN11
853
864
SystemMemoryPartitionMax
854
865
} PARTITION_INFORMATION_CLASS , * PPARTITION_INFORMATION_CLASS ;
855
866
#else
@@ -866,7 +877,8 @@ typedef enum _PARTITION_INFORMATION_CLASS
866
877
#define SystemMemoryPartitionOpenDedicatedMemory 0xA
867
878
#define SystemMemoryPartitionMemoryChargeAttributes 0xB
868
879
#define SystemMemoryPartitionClearAttributes 0xC
869
- #define SystemMemoryPartitionMax 0xD
880
+ #define SystemMemoryPartitionClearAttributes 0xD
881
+ #define SystemMemoryPartitionMax 0xE
870
882
#endif
871
883
872
884
// private
@@ -888,7 +900,7 @@ typedef struct _MEMORY_PARTITION_CONFIGURATION_INFORMATION
888
900
ULONG_PTR StandbyPageCountByPriority [8 ]; // since REDSTONE2
889
901
ULONG_PTR RepurposedPagesByPriority [8 ];
890
902
ULONG_PTR MaximumCommitLimit ;
891
- ULONG_PTR DonatedPagesToPartitions ;
903
+ ULONG_PTR Reserved ; // DonatedPagesToPartitions
892
904
ULONG PartitionId ; // since REDSTONE3
893
905
} MEMORY_PARTITION_CONFIGURATION_INFORMATION , * PMEMORY_PARTITION_CONFIGURATION_INFORMATION ;
894
906
0 commit comments