question

NathanMani-3448 avatar image
0 Votes"
NathanMani-3448 asked XiaopoYang-MSFT answered

how to get info about which app is using my microphone/speaker programmatically

Hi,

I'm trying to write a program that check whether my SYSVAD Microphone/Speaker being used by which application. I could not get any sample code. Can anyone please help me on this ..

Advance thank you

windows-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SongZhu-MSFT avatar image
0 Votes"
SongZhu-MSFT answered SongZhu-MSFT edited

You can refer to the official sample: Windows audio session (WASAPI) sample


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered

According to How can I find out which processes on my computer are accessing the microphone?. You can determine which processes are using a device handle. This Answer of the SO question provides a solution. Like The Handle Utility.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.