Getting volume change notifications on Vista/7 (C++)

后端 未结 2 688
执笔经年
执笔经年 2021-01-01 05:16

I\'m trying to get notifications whenever the master volume changes on Windows Vista/7. This is the code I\'m using:

#include 
#include          


        
相关标签:
2条回答
  • 2021-01-01 05:45

    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).

    0 讨论(0)
  • 2021-01-01 05:59

    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.

    0 讨论(0)
提交回复
热议问题