I am writing a program to collect a Windows user actions data: clicks, outlook meetings, microphone and webcamera usage, etc. Something close to key logger, but with additions.
I have a task to collect data if user has muted or unmuted his microphone or turned on/off his web camera during a call in messengers: like Skype, Telegram or Discord, for example.
I know that i can collect data from registry by path
\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore{camera/microphone}\NonPackaged
There is written data of which apps have asked access to a microphone or web camera and device usage time start and stop. But it does not tell if user`s microphone or web camera were actually used (user could mute them during a call).
Is there any way to get data if users microphone and web camera were actually used and were not turned off during calls? Any low level Win32 functions? Is it even possible, or device data stream of application cannot be accessed?