With IPolicyConfig.SetEndpointVisibility
how to disable/enable audio device programmably?
Divyns Lin
41
Reputation points
Hello MSFT
I attempted to create a simple program that allows enabling and disabling sound devices for testing APO loading and unloading easily.
Is there any programmatic way to achieve this? I tried with the 'pnputil.exe /restart' method, but it involves a reboot sometime, which is not ideal. I've searched MSDN, and there doesn't seem to be a direct method available. Can anyone provide some hints, whether it's through Win32, .NET, or PowerShell?
Windows development | Windows API - Win32
Windows for business | Windows Server | User experience | PowerShell
Developer technologies | .NET | Other
Developer technologies | .NET | Other
Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Answer accepted by question author