#ifndef _NTRTL_H
/**
* The RtlEqualUnicodeString routine compares two Unicode strings to determine whether they are equal.
*
* \param[in] String1 Pointer to the first Unicode string.
* \param[in] String2 Pointer to the second Unicode string.
* \param[in] CaseInSensitive If TRUE, case should be ignored when doing the comparison.
* \return TRUE if the two Unicode strings are equal; otherwise, it returns FALSE.
* \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-rtlequalunicodestring
*/
_Must_inspect_result_
NTSYSAPI
BOOLEAN
NTAPI
RtlEqualUnicodeString(
_In_ PCUNICODE_STRING String1,
_In_ PCUNICODE_STRING String2,
_In_ BOOLEAN CaseInSensitive
);
View code on GitHub
// wdm.h
NTSYSAPI BOOLEAN RtlEqualUnicodeString(
[in] PCUNICODE_STRING String1,
[in] PCUNICODE_STRING String2,
[in] BOOLEAN CaseInSensitive
);
View the official Windows Driver Kit DDI reference
This function is documented in Windows Driver Kit.
The RtlEqualUnicodeString routine compares two Unicode strings to determine whether they are equal.
String1
[in]Pointer to the first Unicode string.
String2
[in]Pointer to the second Unicode string.
CaseInSensitive
[in]If TRUE, case should be ignored when doing the comparison.
RtlEqualUnicodeString returns TRUE if the two Unicode strings are equal; otherwise, it returns FALSE.