-
-
Notifications
You must be signed in to change notification settings - Fork 158
Registry Overrides
This page outlines the registry overrides that are used in the VirtualDisplayDriver. These settings can be modified to enable or disable specific features in the driver. The settings can be retrieved from either the registry or an XML configuration file (vdd_settings.xml
).
The following settings are mapped to registry keys within the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
location. If the registry keys do not already exist, you will need to create them manually.
Setting Name | Registry Key (Uppercase) | Description |
---|---|---|
LoggingEnabled | LOGS |
Enables logging |
DebugLoggingEnabled | DEBUGLOGS |
Enables debug logging |
HDRPlusEnabled | HDRPLUS |
Enables HDR Plus feature |
SDR10Enabled | SDR10BIT |
Enables SDR10 bit depth |
CustomEdidEnabled | CUSTOMEDID |
Enables custom EDID feature |
HardwareCursorEnabled | HARDWARECURSOR |
Enables hardware cursor |
PreventMonitorSpoof | PREVENTMONITORSPOOF |
Prevents monitor spoofing |
EdidCeaOverride | EDIDCEAOVERRIDE |
Enables EDID CEA override |
VDDPath | VDDPATH |
Custom directory for driver configuration |
The registry keys are stored under:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
Each of the settings above corresponds to a registry key under this path. For example, to enable logging, the registry key LOGS
should be set to DWORD 1
.
The settings are checked through a function called EnabledQuery
, which first checks the registry for the specified setting and then falls back to checking an XML file (vdd_settings.xml
) if the registry key is not found or is incorrectly set.
-
Registry Value:
The function first looks for the registry key corresponding to the setting. If the value isDWORD 1
, it is considered enabled.- If the value is
DWORD 0
, it proceeds to check the XML configuration file. - If the registry key contains a string value (
"true"
), it is also considered enabled. - If the registry value cannot be read, it falls back to the XML check.
- If the value is
If the registry check fails, the function checks the vdd_settings.xml
file located in the same directory as the application. The function looks for a specific XML element, with the name corresponding to the setting. The value of this element determines whether the setting is enabled or not.
For example:
- If the XML element value is
"true"
, the setting is considered enabled. - If the value is
"false"
, the setting is considered disabled.
The XML settings file is located at:
<path_to_config>\vdd_settings.xml
Here’s an example of how the query works:
-
Registry Query:
The function checks the registry for the keyLOGS
under the path:HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
If the value is
DWORD 1
, logging is enabled. -
Fallback to XML:
If the registry value is not found or has an invalid value, it will check thevdd_settings.xml
file for an element with the namelogging
. If the element contains the value"true"
, logging is enabled.
If the MikeTheTech\VirtualDisplayDriver
registry path does not exist, users will need to create it manually. To do this:
- Open the Registry Editor (
regedit
). - Navigate to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE
. - Right-click on
SOFTWARE
, select New > Key, and name itMikeTheTech
. - Right-click on
MikeTheTech
, select New > Key, and name itVirtualDisplayDriver
. - Now, under
VirtualDisplayDriver
, you can create the required keys as listed in the table above.
- Navigate to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
. - Right-click on
VirtualDisplayDriver
and select New > DWORD (32-bit) Value. - Name the new value
LOGS
. - Set the value of
LOGS
toDWORD 1
to enable logging.
Repeat this process for each setting you want to configure.
The VDDPATH registry key allows you to specify a custom directory for the VirtualDisplayDriver configuration files. By default, the driver looks for configuration files in a predefined location. However, you can override this path by setting the VDDPATH registry key to point to a custom directory where your driver configuration files are stored.
-
Create the Registry Key:
Navigate toComputer\HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
and create a new String value namedVDDPATH
. -
Set the Path:
Set the value of theVDDPATH
registry key to the full directory path where your configuration files are located. For example, if your configuration files are inD:\DriverConfig
, the value ofVDDPATH
should be:D:\DriverConfig
-
Restart the Driver:
After modifying the registry, restart the VirtualDisplayDriver for the changes to take effect. The driver will now load configuration files from the custom directory you specified.
- Open Registry Editor (
regedit
). - Navigate to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\MikeTheTech\VirtualDisplayDriver
. - Right-click on
VirtualDisplayDriver
and select New > String Value. - Name the new value
VDDPATH
. - Set the value to your desired directory path, e.g.,
D:\DriverConfig
.
This will configure the driver to load settings from the specified directory rather than the default location.
- Ensure that you have Administrator privileges when modifying the registry.
- Always back up your registry before making any changes.
- Incorrect changes to the registry can cause system instability, so proceed with caution.