RtlCompareUnicodeString function

The RtlCompareUnicodeString routine compares two Unicode strings.

Syntax

NTSYSAPI LONG RtlCompareUnicodeString(
  PCUNICODE_STRING String1,
  PCUNICODE_STRING String2,
  BOOLEAN          CaseInSensitive
);

Parameters

String1

Pointer to the first string.

String2

Pointer 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:

Return code Description
Zero
String1 equals String2.
<>
String1 is less than String2.
> Zero
String1 is greater than String2.

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Wudfwdm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See Also

RtlCompareString

RtlEqualString