From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Platform:Windows" |
|---|
| claim | "The low 2 bits of an IOCTL code select how the I/O manager passes buffers (METHOD_*)" |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Windows/Kernel drivers" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "IOCTL_METHOD" |
|---|
| values | | 0 | "METHOD_BUFFERED" |
|---|
| 1 | "METHOD_IN_DIRECT" |
|---|
| 2 | "METHOD_OUT_DIRECT" |
|---|
| 3 | "METHOD_NEITHER" |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "METHOD_BUFFERED 0, METHOD_IN_DIRECT 1, METHOD_OUT_DIRECT 2, METHOD_NEITHER 3; FILE_ANY_ACCESS 0, FILE_READ_ACCESS 1, FILE_WRITE_ACCESS 2" |
|---|
| repo | "https://github.com/mingw-w64/mingw-w64" |
|---|
| commit | "63ebe6cdb3ec4d5c586b7f0f0c03dd502e44c296" |
|---|
| path | "mingw-w64-headers/include/devioctl.h" |
|---|
| lines | "107-110" |
|---|
|
| type | "source" |
|---|
| detail | "one case per method: BUFFERED uses AssociatedIrp.SystemBuffer for both; NEITHER uses Type3InputBuffer and Irp->UserBuffer; IN/OUT_DIRECT use SystemBuffer plus Irp->MdlAddress" |
|---|
| repo | "https://github.com/microsoft/Windows-driver-samples" |
|---|
| commit | "2dc3fd3a0cc84a2933f2194e7ec0871584979071" |
|---|
| path | "general/ioctl/wdm/sys/sioctl.c" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "METHOD buffering" |
|---|
| topic | "Platform:Windows/Kernel drivers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:47:23.169Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:01:49.230Z" |
|---|
| summary | "Read devioctl.h 105-113: METHOD_BUFFERED 0, IN_DIRECT 1, OUT_DIRECT 2, NEITHER 3 (plus two aliases METHOD_DIRECT_TO/FROM_HARDWARE); complete true" |
|---|
| changed | |
|---|
|
|
|---|