'Determine if there is an active Microsoft Teams call via the Windows API
Is there a function in the Windows API that can be called to determine if there is an active Microsoft Teams call in progress?
Solution 1:[1]
No.
Microsoft Teams is a 3rd party application, just like contoso.exe. There's nothing built into the system that would allow a client (or the OS, really) to query, whether a Teams (or Contoso) call is currently active.
If you are interested in Microsoft Teams specifically, it offers an API for clients to interact with it. I don't know whether this includes services to query for the current state.
If, on the other hand, you are interested in finding out, whether any given camera or microphone is currently in exclusive use, you can ask the system to open the device for exclusive access, and draw conclusions from the results.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | IInspectable |