NTSTATUS
SoundSetErrorCode(
IN PWSTR RegistryPath,
IN ULONG Value
);
The SoundSetErrorCode function assigns a value to the “Configuration Error” value name in the specified registry path.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise returns an NTSTATUS error code.