If you're talking about this : https://i.ibb.co/mvrpKCQ/Deactivate-Device.jpg
It is done with IPolicyConfig.SetEndpointVisibility
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The original requirement was to switch the communication device in Skype for Business, but since there is no such api (please tell me if there is any way to do this), so I gave up. Then I found that by disable/enable the device, Skype for Business seems to be able to detect this action and prompt the user to switch the communication device.
I know to use devcon.exe in the WDK to disable/enable a device, but when the device is playing sound, disabling the device will be prompted to reboot the system, so this method does not work.
So is there any way to help me do this?
If you're talking about this : https://i.ibb.co/mvrpKCQ/Deactivate-Device.jpg
It is done with IPolicyConfig.SetEndpointVisibility
Can you provide a demo or a link to use IPolicyConfig.SetEndpointVisibility ? Bro