Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Windows/struct/IRP x64 (common fields)

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Platform:Windows"
claim"Fields of IRP that dispatch routines read or write, with x64 offsets: SystemBuffer, IoStatus, UserBuffer, current stack location"
scope
level"platform"
applies_to"Platform:Windows/Kernel drivers"
observed_in
Empty array
data
name"IRP_COMMON"
abi"win64"
size_min"0xD0"
variant"selected fields"
fields
offset"0x0"
size2
type"int16_t"
name"Type"
offset"0x2"
size2
type"uint16_t"
name"Size"
offset"0x8"
size8
type"void *"
name"MdlAddress"
notes"output buffer MDL for METHOD_IN/OUT_DIRECT"
offset"0x10"
size4
type"uint32_t"
name"Flags"
offset"0x18"
size8
type"void *"
name"AssociatedIrp_SystemBuffer"
notes"METHOD_BUFFERED copy, and the input copy of the direct methods"
offset"0x30"
size8
type"int64_t"
name"IoStatus_Status"
notes"NTSTATUS in the low 32 bits"
offset"0x38"
size8
type"uint64_t"
name"IoStatus_Information"
notes"bytes returned"
offset"0x70"
size8
type"void *"
name"UserBuffer"
notes"raw user output pointer for METHOD_NEITHER"
offset"0xB8"
size8
type"IO_STACK_LOCATION *"
name"Tail_Overlay_CurrentStackLocation"
notes"what IoGetCurrentIrpStackLocation returns"
evidence
type"source"
detail"IRP field order; offsets computed with x64 alignment, 0x70 and 0xB8 match what compiled drivers use"
repo"https://github.com/mingw-w64/mingw-w64"
commit"63ebe6cdb3ec4d5c586b7f0f0c03dd502e44c296"
path"mingw-w64-headers/ddk/include/ddk/wdm.h"
lines"6141-6191"
confidence"medium"
related
Empty array
key"IRP x64 (common fields)"
topic"Platform:Windows/Kernel drivers"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T13:47:23.506Z"
verifications
Empty array