Export (0) Print
Expand All

HidP_IsSameUsageAndPage macro

The HidP_IsSameUsageAndPage 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

Specifies an extended usage.

u2

Specifies an extended usage.

Return value

HidP_IsSameUsageAndPage returns one of the following status values:

Return codeDescription
TRUE

Usage u1 is the same as usage u2.

FALSE

Usage u1 is different than usage u2.

 

Remarks

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 ID.

For more information, see HID Collections.

Requirements

Target platform

Desktop

Header

Hidpi.h (include Hidpi.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft