Post · 1 min read· p. 1071

MEMORY_PARTITION_INITIAL_ADD_INFORMATION

The MEMORY_PARTITION_INITIAL_ADD_INFORMATION structure (formally _MEMORY_PARTITION_INITIAL_ADD_INFORMATION) both provides input for and receives output from NtManagePartition when given the information class SystemMemoryPartitionInitialAddMemory (4).

The structure is defined for both 32-bit and 64-bit Windows, but the 32-bit form is useless in practice before Version 1703 because the 32-bit NtManagePartition fails trivially (returning STATUS_NOT_SUPPORTED).

VersionSize (x86)Size (x64)
10.0 to 15110x0C0x18
1607 to 20040x140x20

The sizes in the preceding table and the offsets, names and types in the next are from type information in private symbol files that Microsoft has included in downloadable packages of public symbol files and still makes available at the public symbol server.

Offset (x86)Offset (x64)DefinitionVersionsRemarks
0x00 (10.0 to 1511)0x00 (10.0 to 1511)ULONG_PTR StartPage;10.0 to 1511input
0x04 (10.o to 1511)0x08 (10.0 to 1511)ULONG_PTR NumberOfPages;10.0 to 1511input and output
0x08 (10.0 to 1511); 0x000x10 (10.0 to 1511); 0x00ULONG Flags;10.0 and higherinput
0x040x04ULONG NumberOfRanges;1607 and higherinput
0x080x08ULONG_PTR NumberOfPagesAdded;1607 and higheroutput
0x0C0x10MEMORY_PARTITION_PAGE_RANGE PartitionRanges [ANYSIZE_ARRAY];1607 and higherinput