title: Controlling the master speaker volume in Windows 7
body: <p>I have a written a very simple application that I use to play my music collection with in Delphi 2007 that runs on Windows 7. I shell out to the Windows Media Player to avoid the Delphi Media Player component which refuses to play some tracks that I throw at it. I would now like to control the volume of the speaker from the application. </p>
  
  <p>At this point I say 'speaker volume' rather than 'WMP volume' because I imagine controlling the volume of the WMP is more difficult than controlling the overall speaker/master volume for all applications.</p>
  
  <p>I'm sure this was very simple in the past but OS get more complex and all the code snippets that I have found and tried don't work for the master/core volume that controls the speakers.</p>
  
  <p>Is it possible to control this master volume from a Delphi 2007 running on Windows 7?</p>
  
  <p>If it is, then a couple of functions like GetVolume and SetVolume I could use to do what is such a basic task would be very much appreciated.</p>
  
  <p>I have looked at similar questions asked in the past and I am not hopeful.</p>
  
  <p>Bruce. </p>