Post · 1 min read· pp. 1678–1679

DEVICE_MAP

SKETCH OF HOW RESEARCH MIGHT CONTINUE AND RESULTS BE PRESENTED

The DEVICE_MAP structure (formally _DEVICE_MAP) is where the Object Manager arranges that the \DosDevices directory in the object namespace can refer to a local directory object instead of the global one.

Variability

The DEVICE_MAP is highly susceptible to changing between builds. The following changes of size give some rough indication:

VersionSize (x86)Size (x64)
5.00x2C
5.1 to 6.00x300x38
6.1 to 15110x340x40
1607 to 20040x380x48

Layout

The sizes in the preceding table and the offsets, names and types in the next are from type information in public symbol files for the kernel, starting from Windows 2000 SP3.

Offset (x86)Offset (x64)DefinitionVersionsRemarks
0x00 (5.0)ULONG ReferenceCout;5.0 onlynext at 0x08
0x04 (5.0); 0x000x00OBJECT_DIRECTORY *DosDevicesDirectory;5.0 and higher
0x040x08OBJECT_DIRECTORY *GlobalDosDevicesDirectory;5.1 and higher
0x080x10HANDLE DosDevicesDirectoryHandle;6.1 and higher
0x08 (5.1 to 6.0); 0x0C0x10 (late 5.2 to 6.0); 0x18ULONG ReferenceCount;5.1 and higherpreviously at 0x00
0x08 (5.0); 0x0C (5.1 to 6.0); 0x100x14 (late 5.2 to 6.0); 0x1CULONG DriveMap;5.0 and higher
0x0C (5.0); 0x10 (5.1 to 6.0); 0x140x18 (late 5.2 to 6.0); 0x20UCHAR DriveType [0x20];5.0 and higher
0x340x40EJOB *ServerSilo;1607 and higher