title: C# How to query WebCam from WMI?
body: <p>I use this query in WMI to get all usb devices:</p>
  
  <pre><code>SELECT * FROM Win32_USBControllerDevice
  </code></pre>
  
  <p>Result are serial items like this:</p>
  
  <pre><code>Antecedent: \\PC\root\cimv2:Win32_UsbController.DeviceID="PCI\VEN82......"
  Dependent: \\PC\root\cimv2:Win32_UsbController.DeviceID="USB\\ROOT_HUB20..."
  </code></pre>
  
  <p>I want to find WebCam Device, but I cannot found any clue base on these items. I think I'm used a wrong way?</p>
  
  <p>I don't want to use 3rd party such Aforge.net to do this just for listing WebCams, I want to use WMI only.</p>
  
  <p>So, anyone would help me, please? thank you.</p>
  
  <p><strong>[Problem Solved]</strong></p>
  
  <p>use SELECT * FROM Win32_PnPEntity</p>