diff -r 974f5fdaebfb -r 5f4e0fbb3ea1 Win32Hid.cs --- a/Win32Hid.cs Sat Dec 06 12:13:39 2014 +0100 +++ b/Win32Hid.cs Sat Dec 06 13:08:50 2014 +0100 @@ -17,6 +17,8 @@ [DllImport("hid.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern Boolean HidD_GetProductString(SafeFileHandle HidDeviceObject, StringBuilder Buffer, Int32 BufferLength); + [DllImport("hid.dll", CharSet = CharSet.Auto, SetLastError = true)] + public static extern Boolean HidD_GetAttributes(SafeFileHandle HidDeviceObject, ref HIDD_ATTRIBUTES Attributes); } @@ -74,5 +76,14 @@ public ushort UsagePage; }; + [StructLayout(LayoutKind.Sequential)] + public struct HIDD_ATTRIBUTES + { + public uint Size; + public ushort VendorID; + public ushort ProductID; + public ushort VersionNumber; + } + } \ No newline at end of file