-
-
Notifications
You must be signed in to change notification settings - Fork 299
Build your own version of VDD
We hope you fork https://github.com/VirtualDrivers/Virtual-Display-Driver, clone your own repo locally and make your changes, potentially make a PR or two.
Make sure to install VisualStudio 2022, Windows SDK and WDK.
Open ”VisualStudio installer”, make sure to install ”Desktop development withh C++” package, then change tab to ”Individual components” search for ”spectre latest 64”, mark em all. Search for ”Windows Driver Kit” and mark that for installation as well. Download and install/modify.
Now that you have SDK and WDK installed, you could build the driver. But it won’t install on modern systems due to driver signing. To get it working in your build and test enviroment, you need to build the driver with a local certificate that you create and install into your machine(s). Here is an example on creating a cert file, open a CMD-window and paste:
”C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\MakeCert -r -pe -ss PrivateCertStore -n CN=LocalVDD(Test) LocalVDD.cer”
Sorry for the long line, but in most installs ”makecert.exe” isn’t in path. But this is the path for the executable in my filesystem. This will create your test certificate, which you now have to integrate to your build of the driver.
This is done by opening the provided solution file, mark the project ”MttVDD” and right click/ALT+Énter to get to the properties page. Locate Driver signing, and change values to match:
Sign mode: Test mode
Test Certificate: [browse path to cert-file]
Now you can build Vdd, but you can not install it yet. Since the system isn’t tought to trust your local certificate yet, that is easily remidied by opening a CMD-window again and run:
”CertMgr /add LocalVDD.cer /s /r localMachine root”
Now we have one more thing to do before installing the driver, make sure we have a settings file at the expexted path in the filesystem, by creating a folder C:\VirtualDisplayDriver\ then copy the vdd_settings.xml from your compiled code in your source directory: In mycase:
”D:\coding\VDD\Virtual-Display-Driver\Virtual Display Driver (HDR)\x64\Debug\MttVDD”
Last step, ”x64/arm64” folder and ”Release/Debug” folder depends on your compile platform and type, MttVDD folder contains the driver.dll, inf, cat and xml. Now you open Device manager and Select Action menu -> Add legacy hardware -> Next -> List (Advanced) -> Select all -> Have disk -> browse to your .inf file.
Voila, that should be it!