Background: enum all active sessions that are using system audio.
I am trying to get process information from IAudioSessionManager2. But I can’t find such function. Does anyone know how to get it?
Sample code:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd368281(v=vs.85).aspx
IAudioSessionControl only provides such methods: GetDisplayName, but the display name I got is just null.
You must use the
IAudioSessionControl2interface and theGetProcessIdmethod.