private HidD_GetAttributes ( |
||
hidDeviceObject | ||
attributes | HIDD_ATTRIBUTES | |
return | bool |
private static HidDeviceAttributes GetDeviceAttributes(IntPtr hidHandle) { var deviceAttributes = default(NativeMethods.HIDD_ATTRIBUTES); deviceAttributes.Size = Marshal.SizeOf(deviceAttributes); NativeMethods.HidD_GetAttributes(hidHandle, ref deviceAttributes); return(new HidDeviceAttributes(deviceAttributes)); }