سؤال

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).

هل كانت مفيدة؟

المحلول

You can use FltDeviceIoControlFile or build and send IRP manually with IoBuildDeviceIoControlRequest and IoCallDriver.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top