Previous Next

RtlPrefixUnicodeString

The RtlPrefixUnicodeString routine compares two Unicode strings to determine whether one string is a prefix of the other.

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

Parameters

String1
Pointer to the first string, which might be a prefix of the buffered Unicode string at String2.
String2
Pointer to the second string.
CaseInSensitive
If TRUE, case should be ignored when doing the comparison.

Return Value

RtlPrefixUnicodeString returns TRUE if String1 is a prefix of String2.

Headers

Declared in ntddk.h. Include ntddk.h.

Comments

Callers of RtlPrefixUnicodeString must be running at IRQL = PASSIVE_LEVEL.

See Also

RtlCompareUnicodeString