The DISEQUENCE_COMPARE macro compares two DirectInput sequence numbers, compensating for wraparound.
BOOL DISEQUENCE_COMPARE(
DWORD dwSequence1,
Operator cmp,
DWORD dwSequence2
);
Returns a nonzero value if the result of the comparison specified by the cmp parameter is true, or zero otherwise.
The following example checks whether the dwSequence1 parameter value precedes the dwSequence2 parameter value chronologically:
BOOL Sooner = (DISEQUENCE_COMPARE(dwSequence1, <, dwSequence2));
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.