title: Interacting with HID devices using LibUsbDotNet in C#
body: <p>Simply put: <strong>I would like to know if its possible, with LibUsbDotNet, to read and write HID feature reports.</strong></p>
  
  <p>In the first place I tried to find my device using vid/pid with following example code</p>
  
  <pre><code>class Program
      {
          public static UsbDevice MyUsbDevice;
          public static UsbDeviceFinder uFind = new UsbDeviceFinder(1234,4321);
  
          static void Main(string[] args)
          {
              ErrorCode ec = ErrorCode.None;
  
              try
              {
                  // Find and open the usb device.
                  MyUsbDevice = UsbDevice.OpenUsbDevice(uFind);
  
                  // If the device is open and ready
                  if (MyUsbDevice == null) throw new Exception("Device Not Found.");
  </code></pre>
  
  <p>But I would always get <strong>Device Not Found.</strong></p>
  
  <p>I have checked under "Device manager > Human Interface Devices" my device does exists.</p>
  
  <p>It would be helpful if someone can suggest what is the <em>right method</em> to achieve the same in c#.</p>
  
  <p>Previously I tried to achieve the same in python( using PyUsb ) but lack of examples and documentation made me hopeless.</p>