Share via


HidP_IsSameUsageAndPage

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This macro determines if two extended usages, represented by USAGE_AND_PAGE structures, are equal.

Syntax

BOOLEAN HidP_IsSameUsageAndPage(
  USAGE_AND_PAGE u1,
  USAGE_AND_PAGE u2
);

Parameters

  • u1
    [in] Extended usage.
  • u2
    [in] Extended usage.

Return Value

Returns TRUE if usage u1 is the same as usage u2. Returns FALSE if usage u1 is different than usage u2.

Remarks

The terms button and usage are used synonymously.

As defined by the USB HID standard, an extended usage is a 32-bit unsigned value. The high-order 16 bits specify the usage page, and lower-order 16 bits specify the usage identifier.

Requirements

Header hidpi.h
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

USAGE_AND_PAGE