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

后端 未结 2 703
执笔经年
执笔经年 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).

提交回复
热议问题