bettermanlu
bettermanlu

Reputation: 655

how to get process id from IAudioSessionManager2

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.

Upvotes: 1

Views: 952

Answers (1)

RRUZ
RRUZ

Reputation: 136401

You must use the IAudioSessionControl2 interface and the GetProcessId method.

Upvotes: 2

Related Questions