I\'m trying to get notifications whenever the master volume changes on Windows Vista/7. This is the code I\'m using:
#include
#include
The Windows SDK "OSD" sample is a much simpler example of monitoring the hardware volume than the one I posted on the blog (you don't need all the metering junk in that post).
It works fine when I try it. Be sure to click on the volume control tray icon, click Mixer and modify the volume for your app.