title: Control Webcam settings programmatically in Windows 10
body: <p>I'm looking to control the settings of my webcam (mainly focus) while the device is in use by another application (OBS).</p>
  
  <p>Is it possible?</p>
  
  <p>I've tried <a href="https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CameraManualControls" rel="nofollow noreferrer">this example</a> for UWP, while I was able to control the focus of my camera with some modifications, it only allows that control if it gets full access to the camera, which it doesn't have if I open OBS up first.</p>
  
  <p>My camera is a Logitech C920 using the generic windows drivers (not the Logitech ones)</p>
  
  <p>Currently I can change the values using the webcams properties windows, but I would eventually like to make a physical controller to change it (But I'm not worried about that part right now!)</p>
  
  <p><a href="https://i.stack.imgur.com/jJ9Jp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jJ9Jp.png" alt="Webcam Settings"></a></p>