RtlCompareUnicodeString

LONG
RtlCompareUnicodeString(

IN PUNICODE_STRING String1,
IN PUNICODE_STRING String2,
IN BOOLEAN CaseInSensitive
);

RtlCompareUnicodeString compares two Unicode strings.

Parameters

String1

Points to the first string.

String2

Points to the second string.

CaseInSensitive

If TRUE, case should be ignored when doing the comparison.

Return Value

RtlCompareUnicodeString returns a signed value that gives the results of the comparison:

Zero String1 equals String2.
< Zero String1 is less than String2.
> Zero String1 is greater than String2.

Comments

Callers of RtlCompareUnicodeString must be running at IRQL PASSIVE_LEVEL.

See Also

RtlCompareString, RtlEqualString