I am trying to replicate the disable playback device behaviour from my c# solution. So far I have managed to set the DeviceState registry key of the device I want to disable but it does not route the output of the currently playing applications to another device like when I disable it through the GUI.
I read somewhere that the GUI throws a SendMessage after the registry changes. I tried to throw it from my application with no luck.