NdisEqualString macro (ndis.h)

The NdisEqualString function compares two strings, in the OS-default character set, to determine whether they are equal.

Syntax

void NdisEqualString(
  [in]  _String1,
  [in]  _String2,
  [in]  _CaseInsensitive
);

Parameters

[in] _String1

A pointer to an NDIS_STRING type that describes the first string.

[in] _String2

A pointer to an NDIS_STRING type that describes the second string.

[in] _CaseInsensitive

A boolean value that is TRUE if case should be ignored when doing the comparison. Otherwise, it is FALSE.

Return value

None

Remarks

Starting with Windows 2000, a string of type NDIS_STRING is a counted, null-terminated Unicode string. That is, NDIS defines the NDIS_STRING type as a UNICODE_STRING type.

Requirements

Requirement Value
Minimum supported client Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlEqualUnicodeString instead.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL PASSIVE_LEVEL
DDI compliance rules Irql_Miscellaneous_Function(ndis)

See also

ANSI_STRING

MiniportInitializeEx

ProtocolBindAdapterEx

RtlInitString

RtlInitUnicodeString

UNICODE_STRING