[wdmaudiodev] Re: IAudioSessionEnumerator for all users

  • From: Paul Jackson <mailnew4ster@xxxxxxxxx>
  • To: wdmaudiodev <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 7 Aug 2018 10:25:13 +0300

Thanks Matthew, but unfortunately doing that won't help me implement a
solution for previous and current Windows versions.

On Tue, Aug 7, 2018 at 1:41 AM Matthew van Eerde <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Windows doesn’t provide an API that meets your needs. You could request a
new API in the Feedback Hub:


https://blogs.msdn.microsoft.com/matthew_van_eerde/2016/09/26/report-problems-with-logs-and-suggest-features-with-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
*To:* wdmaudiodev
*Subject:* [wdmaudiodev] Re: IAudioSessionEnumerator for all users

I'm working on a security solution which I mentioned here earlier:

https://www.freelists.org/post/wdmaudiodev/Detecting-and-blocking-microphone-usage
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.freelists.org%2Fpost%2Fwdmaudiodev%2FDetecting-and-blocking-microphone-usage&data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C98bf1005672a441fabfe08d5fbec71b1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636691915319910977&sdata=sHP0QwErVRxy5WpusPUvKTaUFEaKEuLxxxQpOZnwoOE%3D&reserved=0>

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.

Thanks.

On Mon, Aug 6, 2018 at 11:22 PM Matthew van Eerde <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Nope. Why do you want to do this? What would your service do with this
information?


------------------------------
*From:* wdmaudiodev-bounce@xxxxxxxxxxxxx <
wdmaudiodev-bounce@xxxxxxxxxxxxx> on behalf of Paul Jackson <
mailnew4ster@xxxxxxxxx>
*Sent:* Monday, August 6, 2018 7:35:30 AM
*To:* wdmaudiodev
*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.


Other related posts: