fufesou / RustDeskIddDriver

This IDD driver is based on official [Indirect Display Driver Sample](https://github.com/microsoft/Windows-driver-samples/tree/master/video/IndirectDisplay).
Microsoft Public License
73 stars 49 forks source link

Monitors not persisting after a restart #6

Closed psychrabi closed 1 year ago

psychrabi commented 1 year ago

It worked great to add up to 10 monitors. However, the monitors plugin doesnot persists after reboot.

fufesou commented 1 year ago

This is not a kernel-mode driver, and therefore cannot be loaded as a service-based driver.

It seems that a driver management program is needed. And the management program should be registered as a service.

I'm not familiar with the driver management service. I'll spend a few days working on it.

BTW, this should not be part of this project. I'll add a new reporitory.

Here is an example.

fufesou commented 1 year ago

Alternatively, you could manage the drive all by your own program.

fufesou commented 1 year ago

It seems that a driver management program is needed.

I've studied on the windows service.

It's just a program managed by the system. This program starts running when the system starts up. This program installs drivers and plugs in monitors.

It's not very different from our example program or your own program. Except for filling the SERVICE_TABLE_ENTRY if you want to create an alone driver management service. Refer

A program can be registered as a service by sc.exe. Or you could refer to this example if you want to create an alone user service.

I will not add a new repo about the service unless there's more I must do.

fufesou commented 8 months ago

Maybe this tag also meet your requirement.

https://github.com/fufesou/RustDeskIddDriver/releases/tag/v0.4