HidLibrary.NativeMethods.HidD_GetInputReport C# (CSharp) 메소드

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
        internal static extern Boolean HidD_GetInputReport(SafeFileHandle HidDeviceObject, Byte[] lpReportBuffer, Int32 ReportBufferLength);

Usage Example

예제 #1
0
 public bool ReadInputReport(byte[] data)
 {
     if (safeReadHandle == null)
     {
         safeReadHandle = OpenHandle(_devicePath, true);
     }
     return(NativeMethods.HidD_GetInputReport(safeReadHandle, data, data.Length));
 }
All Usage Examples Of HidLibrary.NativeMethods::HidD_GetInputReport