最終更新:2014-07-17 (木) 08:13:29 (3568d)  

HidD_GetAttributes
Top / HidD_GetAttributes

returns the attributes of a specified top-level collection.

http://msdn.microsoft.com/en-us/library/windows/hardware/ff538900(v=vs.85).aspx

BOOLEAN __stdcall HidD_GetAttributes(
  _In_   HANDLE HidDeviceObject,
  _Out_  PHIDD_ATTRIBUTES Attributes
);

取得できる情報 (HIDD_ATTRIBUTES?)

  • VID
  • PID
  • バージョン番号
    typedef struct _HIDD_ATTRIBUTES {
      ULONG  Size;
      USHORT VendorID;
      USHORT ProductID;
      USHORT VersionNumber;
    } HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;