Is there a function in the Windows API that can be called to determine if there is an active Microsoft Teams call in progress?
CodePudding user response:
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.