title: GET Master volume in Windows XP/Vista/Seven (the one increased through keyboard wheel normally)
body: <p>I know a lot of people asked this but I didn't read any answer, are there any lib/a generic way to GET (not set, I don't need it) the master volume (the volume of the current source of output for sounds, not voice) which works for both xp/vista/seven ?</p>
  
  <p>If not, how to do it for xp, vista, seven (I'll write my generic wrapper)</p>
  
  <p>I need to show a bar (progress bar) to show how is set the current volume (winform control)</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I found a useful link, I'm testing it but I won't check the answer 'till I get something that works 
  <a href="http://www.codeproject.com/KB/audio-video/mixerSetControlDetails.aspx?display=Print" rel="nofollow">http://www.codeproject.com/KB/audio-video/mixerSetControlDetails.aspx?display=Print</a></p>
  
  <p><strong>Edit 2:</strong></p>
  
  <p>An important thing: the previous way to analyze volume won't work on windows vista or later, use this lib instead:
  <a href="http://www.codeproject.com/KB/vista/CoreAudio.aspx" rel="nofollow">http://www.codeproject.com/KB/vista/CoreAudio.aspx</a></p>
  
  <p>I don't know if really works well because I don't have vista/seven at the moment</p>