问题
Which interface should I use to control the volume of my application on Vista or Windows 7?
The programming language doesn't matter.
回答1:
A brief history of the windows audio API's
There are several volume control points in Vista/W7
You probably want to use the ISimpleAudioVolume interface
回答2:
This here article/library did it for me. Import it and use ONELINER to set global application volume, which works with old style API that will work on XP and 7 as well.
http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23/
来源:https://stackoverflow.com/questions/2349112/vista-win7-application-volume-control-interface