列出当前正在使用声音设备的应用程序 [英] Listing applications that are currently using the sound device
问题描述
你好,
我需要编写一个应用程序,其中将列出当前正在使用声音设备的所有应用程序.例如,如果Windows Media Player或VLC或某些其他媒体应用程序正在运行,则我的应用程序需要列出这些应用程序.
是否有任何Win32 API允许我这样做?我是Win32编程的新手,您的意见将对我有极大的帮助.我一直在谷歌上搜索如何做到这一点.到目前为止没有运气.
期待您的回应
问候
〜Sameer
Hello,
I need to write an application that will list all applications that are currently using the sound device. For example if Windows Media Player or VLC or some other media application is running, my application needs to list these applications.
Are there any win32 api''s that will allow me to do so? I am new to win32 programming and your comments will help me immensely. I have been searching on google on how to do this. So far no luck.
Looking forward to your response
Regards
~Sameer
推荐答案
您可以尝试使用Core Audio API(Vista及更高版本):
http://msdn.microsoft.com/en-us/library/dd370805 (v = VS.85).aspx [
You could try and use the Core Audio API (Vista and above) :
http://msdn.microsoft.com/en-us/library/dd370805(v=VS.85).aspx[^]
In particular,IAudioSessionManager2::GetSessionEnumerator
looks interesting.
这篇关于列出当前正在使用声音设备的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!