#ifndef _NTMMAPI_H
/**
* The MEMORY_REGION_INFORMATION_EX structure extends MEMORY_REGION_INFORMATION
* with partition and NUMA preference metadata. On x64,
* PartitionId is returned when the buffer is at least 40 bytes and NodePreference
* when it is at least 48 bytes. Both classes 3 and 7 accept these extensions.
*/
typedef struct _MEMORY_REGION_INFORMATION_EX
{
PVOID AllocationBase; // Base address of the allocation.
ULONG AllocationProtect; // Page protection when the allocation was created (individual pages can be different from this value).
ULONG RegionType; // MemoryRegionInformation: legacy MEM_* values; MemoryRegionInformationEx: MEMORY_REGION_INFORMATION_TYPE bits.
SIZE_T RegionSize; // The combined size of pages in the region.
SIZE_T CommitSize; // The commit charge associated with the allocation.
ULONG_PTR PartitionId; // 19H1
ULONG_PTR NodePreference; // 20H1
} MEMORY_REGION_INFORMATION_EX, *PMEMORY_REGION_INFORMATION_EX;
View code on GitHubNo description available.