#ifndef _NTRTL_H
/**
* The RtlPrefixUnicodeString routine compares two Unicode strings to determine whether one string is a prefix of the other.
*
* \param[in] String1 Pointer to the first string, which might be a prefix of the buffered Unicode string at String2.
* \param[in] String2 Pointer to the second string.
* \param[in] CaseInSensitive TRUE, case should be ignored when doing the comparison.
* \return TRUE if String1 is a prefix of String2.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/nf-ntddk-rtlprefixunicodestring
*/
_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlPrefixUnicodeString(
_In_ PCUNICODE_STRING String1,
_In_ PCUNICODE_STRING String2,
_In_ BOOLEAN CaseInSensitive
);
View code on GitHub// ntddk.h
NTSYSAPI BOOLEAN RtlPrefixUnicodeString(
[in] PCUNICODE_STRING String1,
[in] PCUNICODE_STRING String2,
[in] BOOLEAN CaseInSensitive
);
View the official Windows Driver Kit DDI reference// ntddk.h
BOOLEAN RtlPrefixUnicodeString(
_In_ PCUNICODE_STRING String1,
_In_ PCUNICODE_STRING String2,
_In_ BOOLEAN CaseInSensitive
);
View the official Win32 development documentationThis function is documented in Windows Driver Kit.
The RtlPrefixUnicodeString routine compares two Unicode strings to determine whether one string is a prefix of the other.
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.
RtlPrefixUnicodeString returns TRUE if String1 is a prefix of String2.
Compares two Unicode strings to determine whether one string is a prefix of the other.
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.
TRUE if String1 is a prefix of String2.
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows 2000 Professional [desktop apps only] |
| Minimum supported server |
Windows 2000 Server [desktop apps only] |
| Target platform |
Universal |
| Header |
Ntddk.h (include Ntddk.h) |
| Library |
Ntdll.lib |
| DLL |
Ntdll.dll |