Windows doesn’t provide an API that meets your needs. You could request a new
API in the Feedback Hub:
In fact, you could submit multiple requests, e.g. one for a user-agnostic audio
session enumeration API, and a separate request for a microphone consent plugin.
Your proposed workaround of creating a new session enumerator object for each
user, as they log in, seems worth a shot.
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on
behalf of Paul Jackson <mailnew4ster@xxxxxxxxx>
Sent: Monday, August 6, 2018 3:31:26 PM
Subject: [wdmaudiodev] Re: IAudioSessionEnumerator for all users
I'm working on a security solution which I mentioned here earlier:
It will be running from a service, and should log all unwanted microphone usage
(I still investigate whether I can also prevent recording, even though based on
the previous discussion I'm not so optimistic).
I can have a deamon running for every user and communicating with the service,
but I hoped to be able to avoid that.
On Mon, Aug 6, 2018 at 11:22 PM Matthew van Eerde
Nope. Why do you want to do this? What would your service do with this
behalf of Paul Jackson <mailnew4ster@xxxxxxxxx<mailto:mailnew4ster@xxxxxxxxx>>
Sent: Monday, August 6, 2018 7:35:30 AM
Subject: [wdmaudiodev] IAudioSessionEnumerator for all users
I tried using IAudioSessionEnumerator from a service, but I see that I don't
get any activity. After another experiment, I saw that every user sees only his
own audio sessions. Is there a way to enumerate all system sessions? Thanks.