How cam i use regedit or WPF disable and enable camera immediately(Windows 10)
haoming.hsu
1
Reputation point
I use WPF do a camera detection APP,
I want the app can turn off and turn on immediately even if the webcam already open
but I try many methods can't finish it
- regedit set Value=Allow or Deny
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global{E5323777-F976-4f5b-9B55-B94699C46E44}\Value - regedit set Value=Allow or Deny
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam\Value - set LetAppsAccessCamera=00000002(use Administrator)
HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ AppPrivacy\LetAppsAccessCamera - use devcon.exe run disable this USB camera, but if i want to enable this I have to reboot computer...
only this method can turn off webcam immediately, but my app can't trigger this action
click this button
Sign in to answer