1.1 --- a/Win32Hid.cs Sat Dec 06 12:13:39 2014 +0100
1.2 +++ b/Win32Hid.cs Sat Dec 06 13:08:50 2014 +0100
1.3 @@ -17,6 +17,8 @@
1.4 [DllImport("hid.dll", CharSet = CharSet.Auto, SetLastError = true)]
1.5 public static extern Boolean HidD_GetProductString(SafeFileHandle HidDeviceObject, StringBuilder Buffer, Int32 BufferLength);
1.6
1.7 + [DllImport("hid.dll", CharSet = CharSet.Auto, SetLastError = true)]
1.8 + public static extern Boolean HidD_GetAttributes(SafeFileHandle HidDeviceObject, ref HIDD_ATTRIBUTES Attributes);
1.9 }
1.10
1.11
1.12 @@ -74,5 +76,14 @@
1.13 public ushort UsagePage;
1.14 };
1.15
1.16 + [StructLayout(LayoutKind.Sequential)]
1.17 + public struct HIDD_ATTRIBUTES
1.18 + {
1.19 + public uint Size;
1.20 + public ushort VendorID;
1.21 + public ushort ProductID;
1.22 + public ushort VersionNumber;
1.23 + }
1.24 +
1.25
1.26 }
1.27 \ No newline at end of file