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