Is there a way to lock a system registry key from being changed? Or to somehow keep it constant?
In Windows 7, I'm trying to prevent a system registry key from being automatically changed any time a monitor is turned off or my system is rebooted.
The key is in:
It's where Windows sets the properties for a particular sound device (my HDMI sound output). Anytime a monitor is turned off or system rebooted, Windows resets the speaker configuration of this device to a 2-channel "Stereo" setup, and resets the sampling rate/bit depth to 16bit/44KHz.
I'd like to lock the respective keys/properties to prevent Windows from constantly resetting them.
Without any pre-clearance from those knowledgable, I'm hesitant to tamper with permissions of a system-level key like this. If this is an impossibility to lock a system-level key such as this, is there a way I can somehow script/program a way to poll this registry key, and if changed, set it back to the settings I want?