简体   繁体   中英

How to disable windows tablet inbuilt webcam

I want to make an application for my classroom where I want to disable tablet webcam. I want to restrict student's to use webcam while class is going on. However they can use it after. I just want to know how can I disable web cam using c# program.

There are [at least] two ways to do it:

  1. Disable the device (see Programmatically enabling/disabling hardware device ) similarly to interactive disable/enable action in Device Manager MMC snap-in.
  2. Since webcam is exclusive use resource, your application might implement a sort of fake capture session using the camera, and the camera will not be available to other applications.

Either way, student user account should be restricted so that use could not stop your video application, could not re-enable the device interactively.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM