Skip to content

Commit 1eb6bb5

Browse files
committed
Update ntmmapi.h
1 parent c374b49 commit 1eb6bb5

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

phnt/include/ntmmapi.h

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ typedef enum _MEMORY_INFORMATION_CLASS
6464
MemoryRegionInformation, // MEMORY_REGION_INFORMATION
6565
MemoryWorkingSetExInformation, // MEMORY_WORKING_SET_EX_INFORMATION
6666
MemorySharedCommitInformation, // MEMORY_SHARED_COMMIT_INFORMATION
67-
MemoryImageInformation // MEMORY_IMAGE_INFORMATION
67+
MemoryImageInformation, // MEMORY_IMAGE_INFORMATION
68+
MemoryRegionInformationEx,
69+
MemoryPrivilegedBasicInformation
6870
} MEMORY_INFORMATION_CLASS;
6971

7072
#if (PHNT_MODE == PHNT_MODE_KERNEL)
@@ -105,8 +107,22 @@ typedef struct _MEMORY_REGION_INFORMATION
105107
{
106108
PVOID AllocationBase;
107109
ULONG AllocationProtect;
108-
ULONG RegionType;
110+
union
111+
{
112+
ULONG RegionType;
113+
struct
114+
{
115+
ULONG Private : 1;
116+
ULONG MappedDataFile : 1;
117+
ULONG MappedImage : 1;
118+
ULONG MappedPageFile : 1;
119+
ULONG MappedPhysical : 1;
120+
ULONG DirectMapped : 1;
121+
ULONG Reserved : 26;
122+
};
123+
};
109124
SIZE_T RegionSize;
125+
SIZE_T CommitSize;
110126
} MEMORY_REGION_INFORMATION, *PMEMORY_REGION_INFORMATION;
111127

112128
// private

0 commit comments

Comments
 (0)