I need some general method to change **master audio volume** from Windows XP to Windows 8 in C# because my application is going to work on those OS.

I have tried already <http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-sound-volume.html> but it doesn't work under Windows 8. Perhaps it should work under Windows XP.

Anyway I need some compatible approach to do it. Any clue?