RtlPrefixUnicodeString routine

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

Syntax


BOOLEAN RtlPrefixUnicodeString(
  _In_ PCUNICODE_STRING String1,
  _In_ PCUNICODE_STRING String2,
  _In_ BOOLEAN          CaseInSensitive
);

Parameters

String1 [in]

Pointer to the first string, which might be a prefix of the buffered Unicode string at String2.

String2 [in]

Pointer to the second string.

CaseInSensitive [in]

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

Return value

RtlPrefixUnicodeString returns TRUE if String1 is a prefix of String2.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Ntddk.h (include Ntddk.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

RtlCompareUnicodeString

 

 

Send comments about this topic to Microsoft

Show: