HidD_GetAttributes function (hidsdi.h)

The HidD_GetAttributes routine returns the attributes of a specified top-level collection.

Syntax

BOOLEAN HidD_GetAttributes(
  [in]  HANDLE           HidDeviceObject,
  [out] PHIDD_ATTRIBUTES Attributes
);

Parameters

[in] HidDeviceObject

Specifies an open handle to a top-level collection.

[out] Attributes

Pointer to a caller-allocated HIDD_ATTRIBUTES structure that returns the attributes of the collection specified by HidDeviceObject.

Return value

HidD_GetAttributes returns TRUE if succeeds; otherwise, it returns FALSE.

Remarks

Only user-mode applications can call HidD_GetAttributes. Kernel-mode drivers can use IOCTL_HID_GET_COLLECTION_INFORMATION.

For more information, see HID Collections.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of Windows.
Target Platform Universal
Header hidsdi.h (include Hidsdi.h)
Library Hid.lib
DLL Hid.dll

See also

HIDD_ATTRIBUTES

IOCTL_HID_GET_COLLECTION_INFORMATION