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?
Asked
Active
Viewed 3,000 times
2 Answers
3
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.

Robert Harvey
- 178,213
- 47
- 333
- 501
-
How do I implement this in C#? `code` IAudioEndpointVolume volume = ???; float* pfLevelDB = null; int result = volume.GetMasterVolumeLevel(out *pfLevelDB); – user1172282 Jan 26 '12 at 22:11
-
Study the CodePlex project. I haven't used it, so I don't know. You will need to take the assembly that's in the CodePlex project, and reference it in your own project. Documentation is included with the assembly. – Robert Harvey Jan 26 '12 at 22:12
1
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.

CodingGorilla
- 19,612
- 4
- 45
- 65