microsoft / Windows-driver-samples

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.99k stars 4.94k forks source link

[indirect display][Question]Add monitor one by one #481

Open KangLee-5566 opened 4 years ago

KangLee-5566 commented 4 years ago

Hi dspkdev team,

sorry to bother you. I wrote some IOCTL command to communicate with the indirect display driver. And I have 2 questions about the indirect display driver. the first question is the IOCTL can pass through commands when I disable and enable the driver. However, IOCTL could not pass commands to the driver after install the indirect display driver. Why?

CreateFile( DevicePath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);

return ERROR_ACCESS_DENIED (0x05)

the other question is the driver can create 2 virtual monitors when the driver launch. However, the API(IddCxMonitorCreate) return STATUS_INVALID_PARAMETERS when I add the 3rd virtual monitor. Could I add monitors one by one on indirect display driver when the virtual monitor exists?

thanks

dazhilang018900 commented 4 years ago

hi bro, im interested in indirect display, but now i have a few problem as the following 。I'd appreciate it if you could help me.

  1. How to sign the umdf driver file (dll),i build the sample (IddSampleDriver),then generate the dll file,cer file,then i try to install the driver by device manager,but it shows the file doesnt have a digital signature, i have already set the bcdedit testingmode on ,but still cant install。 THE only way is to turn off Driver signing enforcement 。

  2. How to communicate with Umdf driver,in your question,you use CreateFile, then using IOCTL command to control driver。I wanna to know what the value likes of the first arg of CreateFile (DevicePath) (maybe "Device\000001\IddSampleDriver" or "ROOT\PnpManage\IddSampleDriver" or something others)