HidD_GetInputReport() private method

private HidD_GetInputReport ( SafeFileHandle HidDeviceObject, Byte lpReportBuffer, Int32 ReportBufferLength ) : System.Boolean
HidDeviceObject Microsoft.Win32.SafeHandles.SafeFileHandle
lpReportBuffer Byte
ReportBufferLength System.Int32
return System.Boolean
Example #1
0
 public bool ReadInputReport(byte[] data)
 {
     if (safeReadHandle == null)
     {
         safeReadHandle = OpenHandle(_devicePath, true);
     }
     return(NativeMethods.HidD_GetInputReport(safeReadHandle, data, data.Length));
 }
Example #2
0
 public bool ReadInputReport(byte[] data)
 {
     EnsureReadHandleActive();
     return(NativeMethods.HidD_GetInputReport(SafeReadHandle, data, data.Length));
 }