The DIMAKEUSAGEDWORD macro combines the Usage Page and Usage HID codes for a device object, for passing to the IDirectInputDevice::GetObjectInfo method.
DWORD DIMAKEUSAGEDWORD(
WORD UsagePage,
WORD Usage
);
This macro is defined in Dinput.h as follows:
#define DIMAKEUSAGEDWORD(UsagePage, Usage) \
((DWORD)MAKELONG(Usage, UsagePage))
Windows NT: Use version 5.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in dinput.h.