title: How to get the interface guid of USB device?
body: <p>I have tried this code, but it only retrieves the "ClassGuid". Is there a way to get the USB device's Interface Guid?</p>
  
  <pre><code>private void loadUsbDevices()
  {
      using (var searcher = new ManagementObjectSearcher(
          @"SELECT * FROM Win32_PnPEntity WHERE DeviceID LIKE 'USB%'"))
      {
          ManagementObjectCollection collection = searcher.Get();
  
          foreach (var device in collection)
          {
              Console.WriteLine(((string) device.GetPropertyValue("Name")) + " ("
                          + ((string) device.GetPropertyValue("ClassGuid")) + ") "
                          + ((string)device.GetPropertyValue("DeviceID")));
          }
      }
  }
  </code></pre>