HidP_SetButtons macro (hidpi.h)

The HidP_SetButtons macro is a mnemonic alias for the HidP_SetUsages function.

Syntax

#define HidP_SetButtons(Rty, Up, Lco, ULi, ULe, Ppd, Rep, Rle) \
        HidP_SetUsages(Rty, Up, Lco, ULi, ULe, Ppd, Rep, Rle)

Parameters

[in] Rty

Specifies a HIDP_REPORT_TYPE enumerator value that indicates the type of report located at Rep.

[in] Up

Specifies the usage page for the usages specified by ULi.

[in] Lco

Specifies the link collection that contains the usages. If Lco is nonzero, the routine only sets the usages, if they exist, in this link collection. If Lco is zero, the routine sets the first usage for each specified usage in the top-level collection associated with Ppd.

[in, out] ULi

Pointer to the array of usages.

[in, out] ULe

Specifies, on input, the number of usages in ULi. See the Remarks section for information about the output value.

[in] Ppd

Pointer to the pre-parsed data of the top-level collection associated with the report located at Rep.

[in] Rep

Pointer to a report.

[in] Rle

Specifies the size, in bytes, of the report located at Rep, which must be equal to the report length for the specified report type that HidP_GetCaps returns in a collection's HIDP_CAPS structure.

Return value

None

Remarks

See HidP_SetUsages for return value details.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of Windows.
Target Platform Universal
Header hidpi.h (include hidpi.h)

See also