TR_COMPARE_NETWORK_ADDRESSES

VOID
TR_COMPARE_NETWORK_ADDRESSES(

IN PCHAR A,
IN PCHAR B,
OUT PINT Result
);

TR_COMPARE_NETWORK_ADDRESSES sets a caller-supplied variable to a value indicating whether a given Token Ring address is greater than, less than, or equal to another given Token Ring address.

Parameters

A

Points to the first network address.

B

Points to the second network address.

Result

Points to a caller-supplied variable in which this macro returns the result of its comparison as one of the following values:

Result < zero

B is greater than A.

Result > zero

A is greater than B.

Zero

A equals B.

Comments

Token Ring network addresses do not have a defined ordering relationship. Consequently, the results of this macro for unequal addresses depend on the argument ordering.

Callers of this macro can be running at any IRQL if all pointer parameters access resident memory.

See Also

TR_COPY_NETWORK_ADDRESS