HidP_IsSameUsageAndPage (Windows Embedded CE 6.0)

1/6/2010

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

HID Parser Macros
USAGE_AND_PAGE