VOID
SoundSaveDeviceVolume(
PLOCAL_DEVICE_INFO pLDI,
PWSTR KeyName
);
The SoundSaveDeviceVolume function writes both left and right channel volume settings into the registry.
None.
Left and right volume values are obtained from the volume member of the LOCAL_DEVICE_INFO structure. The names associated with these volumes are obtained from the SOUND_DEVICE_INIT structure pointed to by the LOCAL_DEVICE_INFO structure.
Call the SoundSaveDeviceVolume function when the system shuts down or when the driver is unloaded. Do not use this function if the volume is controlled by a mixer.