HidD_GetInputReport() 개인적인 메소드

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