NTSTATUS
SoundSaveRegistryPath(
IN PUNICODE_STRING RegistryPathName,
OUT PWSTR *SavedString
);
The SoundSaveRegistryPath function stores the specified registry path name, appends the \Parameters subkey to the name string, and returns a pointer to the stored string.
Drivers use the returned path name when calling soundlib.lib functions that require a registry path name as input.
Prior to being unloaded, the driver must deallocate the buffer pointed to by SavedString.
The SoundSaveRegistryPath function is typically used by drivers that support only a single hardware device. Drivers supporting multiple devices call SoundEnumSubkeys, which appends \Parameters\DeviceNum to the path name.