Post · 1 min read· p. 1074

MEMORY_PARTITION_TRANSFER_INFORMATION

The MEMORY_PARTITION_TRANSFER_INFORMATION structure (formally _MEMORY_PARTITION_TRANSFER_INFORMATION) is expected as input to NtManagePartition when given the information class SystemMemoryPartitionMoveMemory (1).

The MEMORY_PARTITION_TRANSFER_INFORMATION structure is 0x0C or 0x10 bytes in 32-bit and 64-bit Windows, respectively, at least to the 2004 edition of Windows 10. Note, however, that the 32-bit form is useless in practice before Version 1703 because the 32-bit NtManagePartition fails trivially (returning STATUS_NOT_SUPPORTED).

Offset (x86)Offset (x64)Definition
0x000x00ULONG_PTR NumberOfPages;
0x040x08ULONG NumaNode;
0x080x0CULONG Flags;

The NumaNode can be 0xFFFFFFFF to mean the node for the current thread’s ideal processor.

Though the original Windows requires that all bits be clear in the Flags, valid bits soon were defined. Microsoft’s names are not known:

MaskVersionsRemarks
0x000000011511 and higher
0x000000021703 and higher
0x000000041703 and higher
0x000000081709 and higher
0x000000101709 and higher
0x000001E02004 and higher
0x000002002004 and highernot invalid, but not (yet) supported