views:

3013

answers:

1

I want to let the user adjust the Mic volume. Rather than reinventing the wheel, we (in XP) would just launch the Volume control panel (by running sndvol32.exe).

You can bring up the Speaker Volume control in Win Vista by shelling out to : SndVol.exe

In XP you could specify a command line parameter -R to show Microphone volume.

Anyone know what the command line parameter is for SndVol.exe to show Mic volume for Windows Vista?

Or some other way to display the Mic volume control panel?

+3  A: 

I think what you want is "control.exe mmsys.cpl,,1"

If you want to access the Mixer and the other functions, you can use these shortcuts:
• Master Volume Left: SndVol.exe -f 0
• Master Volume Right: SndVol.exe -f 49825268
• Volume Mixer Left: SndVol.exe -r 0
• Volume Mixer Right: SndVol.exe -r 49490633
• Playback Devices: control.exe mmsys.cpl,,0
• Recording Devices: control.exe mmsys.cpl,,1
• Sounds: control.exe mmsys.cpl,,2
From http://www.errorforum.com/microsoft-windows-vista-error/4636-vista-tips-tricks-tweaks.html

notandy
This is very close (and perhaps the best that one can get with Vista) but it doesn't show volume. User would need to select the recording device, click configure, then got through a wizard which eventually gets them volume.
Clay Nichols