From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Windows" |
|---|
| claim | "DRIVER_OBJECT as DriverEntry receives it on x64: DriverUnload at +0x68 and the MajorFunction array (28 pointers) at +0x70" |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Windows/Kernel drivers" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DRIVER_OBJECT" |
|---|
| abi | "win64" |
|---|
| size | "0x150" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "Type" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "int16_t" |
|---|
| name | "Size" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "DEVICE_OBJECT *" |
|---|
| name | "DeviceObject" |
|---|
| notes | "head of the list of devices this driver created" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "Flags" |
|---|
|
| offset | "0x18" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverStart" |
|---|
| notes | "image base of the .sys" |
|---|
|
| offset | "0x20" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "DriverSize" |
|---|
|
| offset | "0x28" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverSection" |
|---|
|
| offset | "0x30" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverExtension" |
|---|
|
| offset | "0x38" |
|---|
| size | 16 |
|---|
| type | "UNICODE_STRING" |
|---|
| name | "DriverName" |
|---|
|
| offset | "0x48" |
|---|
| size | 8 |
|---|
| type | "UNICODE_STRING *" |
|---|
| name | "HardwareDatabase" |
|---|
|
| offset | "0x50" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "FastIoDispatch" |
|---|
|
| offset | "0x58" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverInit" |
|---|
| notes | "entry point (GsDriverEntry or DriverEntry)" |
|---|
|
| offset | "0x60" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverStartIo" |
|---|
|
| offset | "0x68" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "DriverUnload" |
|---|
|
| offset | "0x70" |
|---|
| size | 224 |
|---|
| type | "void *[28]" |
|---|
| name | "MajorFunction" |
|---|
| notes | "indexed by IRP_MJ_*; slot N at 0x70 + 8*N, e.g. IRP_MJ_DEVICE_CONTROL (14) at 0xE0" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "field order of DRIVER_OBJECT; offsets are computed from it with natural x64 alignment" |
|---|
| repo | "https://github.com/mingw-w64/mingw-w64" |
|---|
| commit | "63ebe6cdb3ec4d5c586b7f0f0c03dd502e44c296" |
|---|
| path | "mingw-w64-headers/ddk/include/ddk/wdm.h" |
|---|
| lines | "5899-5915" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "DRIVER_OBJECT x64" |
|---|
| topic | "Platform:Windows/Kernel drivers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:47:23.305Z" |
|---|
| verifications | |
|---|