From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Platform:Windows" |
|---|
| claim | "A typical WDM control device creates a named device, fills three MajorFunction slots plus DriverUnload and makes a DosDevices symbolic link" |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Windows/Kernel drivers" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "DriverEntry of a software-only WDM driver (Microsoft ioctl sample)" |
|---|
| effect | "IoCreateDevice(DriverObject, 0, L"\\Device\\SIOCTL", FILE_DEVICE_UNKNOWN, FILE_DEVICE_SECURE_OPEN, FALSE, &dev); MajorFunction[IRP_MJ_CREATE], [IRP_MJ_CLOSE] = CreateClose, [IRP_MJ_DEVICE_CONTROL] = DeviceControl; DriverUnload = Unload; IoCreateSymbolicLink(L"\\DosDevices\\IoctlTest", device name)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "IoCreateDevice at 113-120, MajorFunction and DriverUnload stores at 132-135, IoCreateSymbolicLink at 148; the same file uses alloc_text(INIT, DriverEntry) and alloc_text(PAGE, ...) at 70-75" |
|---|
| repo | "https://github.com/microsoft/Windows-driver-samples" |
|---|
| commit | "2dc3fd3a0cc84a2933f2194e7ec0871584979071" |
|---|
| path | "general/ioctl/wdm/sys/sioctl.c" |
|---|
| lines | "111-150" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Control-device DriverEntry pattern" |
|---|
| topic | "Platform:Windows/Kernel drivers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:47:23.655Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:52:28.833Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read DriverEntry in sioctl.c at 2dc3fd3a (100-160): IoCreateDevice, three MajorFunction slots, DriverUnload, IoCreateSymbolicLink; alloc_text lines 68-77." |
|---|
|
|
|---|