RtlCompareString

LONG
    RtlCompareString(

        PSTRING  String1,
        PSTRING  String2,
        BOOLEAN  CaseInsensitive
        );

RtlCompareString compares two counted 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

RtlCompareString 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 RtlCompareString must be running at IRQL PASSIVE_LEVEL.

See Also

RtlCompareUnicodeString, RtlEqualString