in reply to Set Volume with winmm and mciSendString
Check this out: Win32::Sound. You can take a look at the source code to find out how they do it, or simply use it as-is.