Doron Holan forwarded me to this forum to ask my question here. I hope you can help me with it.
I?m writing a KMDF driver in order to be able to turn off the displays properly from a user-mode application and I?d like you to ask you whether my method is correct or not. What I do is actually get the device interfaces with IoGetDeviceInterfaces for GUID_DEVINTERFACE_DISPLAY_ADAPTER, iterate over them, get the device object pointers to them with IoGetDeviceObjectPointer so that I can build an I/O control request with IoBuildDeviceIoControlRequest and send it to them. I know that IOCTL_VIDEO_SET_OUTPUT_DEVICE_POWER_STATE is deprecated, but I don?t know what IRP I should send.
Could you help me out with this?
Thank you in advance!