Post · 2 min read· pp. 1862–1864

MMSUPPORT_INSTANCE

The MMSUPPORT_INSTANCE structure (formally _MMSUPPORT_INSTANCE) is the first and main part of an MMSUPPORT_FULL, which is in turn the continuation of the ancient MMSUPPORT structure after its separation into parts for the 1607 release of Windows 10.

Variability

As an internal structure with little, if any, visibility outside the kernel, the MMSUPPORT_INSTANCE varies between builds:

VersionSize (x86)Size (x64)
16070x640xC0
1703 to 17090x680xC8
1803 to 20040x640xC0

Layout

These sizes, and the names, offsets and types in the tables that follow, are from Microsoft’s symbol files for the kernel.

Offset (x86)Offset (x64)DefinitionVersionsRemarks
0x000x00USHORT NextPageColor;1607 to 1709previously at 0x60 and 0xC0 in MMSUPPORT
ULONG NextPageColor;1803 and higher
0x02 (1607 to 1709)0x02 (1607 to 1709)USHORT LastTrimStamp;1607 to 1709previously at 0x62 and 0xC2 in MMSUPPORT; next at 0x5C and 0xAC
0x040x04ULONG PageFaultCount;1607 and higherpreviously at 0x64 and 0xC4 in MMSUPPORT
0x080x08ULONG_PTR TrimmedPageCount;1607 and higherpreviously at 0x68 and 0xC8 in MMSUPPORT
0x0C0x10MMWSL_INSTANCE *VmWorkingSetList;1607 and higherpreviously at 0x5C and 0xB8 in MMSUPPORT
0x100x18LIST_ENTRY WorkingSetExpansionLinks;1607 and higherpreviously at 0x0C and 0x18 in MMSUPPORT
0x180x28ULONG AgeDistribution [7];1607 onlypreviously at 0x14 and 0x28 in MMSUPPORT
ULONG AgeDistribution [8];1703 and higher
0x34 (1607); 0x380x60 (1607); 0x68KGATE *ExitOutswapGate;1607 and higherpreviously at 0x04 and 0x08 in MMSUPPORT
0x38 (1607); 0x3C0x68 (1607); 0x70ULONG_PTR MinimumWorkingSetSize;1607 and higherpreviously at 0x30 and 0x60 in MMSUPPORT
0x3C (1607); 0x400x70 (1607); 0x78ULONG_PTR WorkingSetLeafSize;1607 and higherpreviously at 0x34 and 0x68 in MMSUPPORT
0x40 (1607); 0x440x78 (1607); 0x80ULONG_PTR WorkingSetLeafPrivateSize;1607 and higherpreviously at 0x38 and 0x70 in MMSUPPORT
0x44 (1607); 0x480x80 (1607); 0x88ULONG_PTR WorkingSetSize;1607 and higherpreviously at 0x3C and 0x78 in MMSUPPORT
0x48 (1607); 0x4C0x88 (1607); 0x90ULONG_PTR WorkingSetPrivateSize;1607 and higherpreviously at 0x40 and 0x80 in MMSUPPORT
0x4C (1607); 0x500x90 (1607); 0x98ULONG_PTR MaximumWorkingSetSize;1607 and higherpreviously at 0x44 and 0x88 in MMSUPPORT
0x50 (1607); 0x540x98 (1607); 0xA0ULONG_PTR PeakWorkingSetSize;1607 and higherpreviously at 0x54 and 0xA8 in MMSUPPORT
0x54 (1607); 0x580xA0 (1607); 0xA8ULONG HardFaultCount;1607 and higherpreviously at 0x58 and 0xB0 in MMSUPPORT
0x5C0xACUSHORT LastTrimStamp;1803 and higherpreviously at 0x02
0x5EUSHORT Unused0;1803 and higher
0xA4 (1607); 0xAC (1703 to 1709); 0xAEUSHORT PartitionId;1607 and higherpreviously at 0xB4 in MMSUPPORT
0xA6 (1607); 0xAE (1703 to 1709)USHORT Pad0;1607 to 1709previously at 0xB6 in MMSUPPORT
0xB0ULONGLONG SelfmapLock;1803 and higher
0x58 (1607); 0x5C (1703 to 1709)0xA8 (1607); 0xB0 (1703 to 1709)```text
union {
PVOID InstancedWorkingSet;
} u1;
|
| 0x5C (1607);   0x60 (1703 to 1709) | 0xB0 (1607);   0xB8 | `ULONG_PTR Reserved0;` | 1607 to 1709 |  |
| 0x60 (1607);   0x64 (1703 to 1709);   0x60 | 0xB8 (1607);   0xC0 (1703 to 1709);   0xB8 | `MMSUPPORT_FLAGS Flags;` | 1607 and higher | previously at 0x70 and 0xD8 in MMSUPPORT |