NdisEqualString function

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

Syntax


BOOLEAN NdisEqualString(
  _In_ PNDIS_STRING String1,
  _In_ PNDIS_STRING String2,
  _In_ BOOLEAN      CaseInsensitive
);

Parameters

String1 [in]

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

String2 [in]

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

CaseInsensitive [in]

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

Return value

NdisEqualString returns TRUE if the two strings are equal.

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

Target platform

Universal

Version

Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlEqualUnicodeString instead.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

PASSIVE_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function

See also

ANSI_STRING
MiniportInitializeEx
ProtocolBindAdapterEx
RtlInitString
RtlInitUnicodeString
UNICODE_STRING

 

 

Send comments about this topic to Microsoft

Show: