Where in the .NET class library is IAudioEndpointVolume located?

孤者浪人 提交于 2019-12-10 11:53:23

问题


I'm trying to write an application that controls the system volume on Windows 7 but I can't find any documentation on where IAudioEndpointVolume is located in the .NET class library. What is the full path?


回答1:


The Core Audio API (where IAudioEndpointVolume is located) is not native to the .NET Framework.

However, you can use this Codeplex project, which provides .NET wrappers for the Core Audio API.




回答2:


IAudioEndpointVolume is part of the operating system API's, it's in a C++ dll. It doesn't exist as part of the .Net BCL. You could P/Invoke into it if you wish, but there isn't a .Net wrapper unless someone else has written a 3rd party version.



来源:https://stackoverflow.com/questions/9025773/where-in-the-net-class-library-is-iaudioendpointvolume-located

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!