Skip to content

Commit 54f0c93

Browse files
committed
Update ntmmapi.h
1 parent ad523d6 commit 54f0c93

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

phnt/include/ntmmapi.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,17 @@
6565
#define MEM_LARGE_PAGES 0x20000000
6666
#define MEM_DOS_LIM 0x40000000
6767
#define MEM_4MB_PAGES 0x80000000
68+
#define MEM_64K_PAGES (MEM_LARGE_PAGES | MEM_PHYSICAL)
6869

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
6979
#define SEC_BASED 0x00200000
7080
#define SEC_NO_CHANGE 0x00400000
7181
#define SEC_FILE 0x00800000
@@ -658,7 +668,7 @@ typedef struct _CFG_CALL_TARGET_LIST_INFORMATION
658668

659669
#if (PHNT_MODE != PHNT_MODE_KERNEL)
660670

661-
#if (PHNT_VERSION >= PHNT_THRESHOLD)
671+
#if (PHNT_VERSION >= PHNT_WIN8)
662672

663673
NTSYSCALLAPI
664674
NTSTATUS
@@ -850,6 +860,7 @@ typedef enum _PARTITION_INFORMATION_CLASS
850860
SystemMemoryPartitionOpenDedicatedMemory, // 10
851861
SystemMemoryPartitionMemoryChargeAttributes,
852862
SystemMemoryPartitionClearAttributes,
863+
SystemMemoryPartitionSetMemoryThresholds, // since WIN11
853864
SystemMemoryPartitionMax
854865
} PARTITION_INFORMATION_CLASS, *PPARTITION_INFORMATION_CLASS;
855866
#else
@@ -866,7 +877,8 @@ typedef enum _PARTITION_INFORMATION_CLASS
866877
#define SystemMemoryPartitionOpenDedicatedMemory 0xA
867878
#define SystemMemoryPartitionMemoryChargeAttributes 0xB
868879
#define SystemMemoryPartitionClearAttributes 0xC
869-
#define SystemMemoryPartitionMax 0xD
880+
#define SystemMemoryPartitionClearAttributes 0xD
881+
#define SystemMemoryPartitionMax 0xE
870882
#endif
871883

872884
// private
@@ -888,7 +900,7 @@ typedef struct _MEMORY_PARTITION_CONFIGURATION_INFORMATION
888900
ULONG_PTR StandbyPageCountByPriority[8]; // since REDSTONE2
889901
ULONG_PTR RepurposedPagesByPriority[8];
890902
ULONG_PTR MaximumCommitLimit;
891-
ULONG_PTR DonatedPagesToPartitions;
903+
ULONG_PTR Reserved; // DonatedPagesToPartitions
892904
ULONG PartitionId; // since REDSTONE3
893905
} MEMORY_PARTITION_CONFIGURATION_INFORMATION, *PMEMORY_PARTITION_CONFIGURATION_INFORMATION;
894906

0 commit comments

Comments
 (0)