in reply to Programmatically enable/disable a playback device in Windows 7

winmm.dll or msacm32.dll probably have what you are looking for. I only have NT 5 machines not NT 6. I don't understand exactly, GUI with a mouse wise, what you are trying to do. Can you post some links to images of the screens you want to manipulate? If it doesn't appear in Device Manager, it won't appear in devcon.

Look for some C code that claims to do what you want, then look for perl or code that contains the same function name.
  • Comment on Re: Programmatically enable/disable a playback device in Windows 7

Replies are listed 'Best First'.
Re^2: Programmatically enable/disable a playback device in Windows 7
by thmsdrew (Scribe) on Nov 08, 2012 at 17:26 UTC

    This is the screen I'm talking about. If I want to hear sound out of just my speakers, I have to enable "Speakers" and disable "Headphones". If I want to hear sound out of just my headphones, I have to enable "Headphones" and disable "Speakers". (Right-click -> enable/disable).

    They both use the HDAUDIO device.

    I'll look into those libraries you gave.