internal static extern Boolean HidD_GetInputReport(SafeFileHandle HidDeviceObject, Byte[] lpReportBuffer, Int32 ReportBufferLength);
public bool ReadInputReport(byte[] data) { if (safeReadHandle == null) { safeReadHandle = OpenHandle(_devicePath, true); } return(NativeMethods.HidD_GetInputReport(safeReadHandle, data, data.Length)); }