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

Nathan Mani 1 Reputation point
2021-06-11T04:55:44.627+00:00

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 - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,587 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Song Zhu - MSFT 906 Reputation points
    2021-06-14T02:07:07.6+00:00

    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.

    0 comments No comments

  2. Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
    2021-06-28T03:21:23.43+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.