How do I notice that another program is trying to connect to camera being used in my program?

Ray-P 1 Reputation point
2020-11-30T02:38:03.713+00:00

Hello,
I'm wondering if there's any way to notice another program is trying to connect in camera in my program.

If the camera connection is successful, I found information in the registry about the last time the camera was started, the last time it was stopped, and whether it was currently in use.
However, I could not find information related to trying to connect the camera when another program was using it.

When I am using the camera in my program and try to connect the camera in another program, I need to release the camera in my program and hand it over to another program.

Thanks in advance.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,887 questions
{count} votes