how can i make IOCTL calls in kernel mode (windows)
Question
In user mode IOCTL calls can be made via DeviceIoControl function.
What can I use in kernel mode to issue IOCTL calls? I must use this inside a filesystem minifilter driver.
BACKGROUND
I am writing a filesystem minifilter driver, and I must issue IOCTL calls to storage devices to find out their serial number and capabilities (removable or not).
Solution
You can use FltDeviceIoControlFile or build and send IRP manually with IoBuildDeviceIoControlRequest and IoCallDriver.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow