Partager via


HidP_IsSameUsageAndPage (Windows CE 5.0)

Send Feedback

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

BOOLEAN HidP_IsSameUsageAndPage(  USAGE_AND_PAGE u1,  USAGE_AND_PAGE u2);

Parameters

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

Return Values

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

OS Versions: Windows CE .NET 4.2 and later.
Header: Hidpi.h.

See Also

USAGE_AND_PAGE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.