NdisEqualString (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisEqualString 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]

Pointer to an NDIS_STRING type that describes the first string.

String2 [in]

Pointer to an NDIS_STRING type that describes the second string.

CaseInsensitive [in]

Specifies TRUE if case should be ignored when doing the comparison.

Return value

NdisEqualString returns TRUE if the two strings are equal.

Remarks

For Windows 2000 and later drivers, a string of type NDIS_STRING is a counted, null-terminated Unicode string. That is, for Windows 2000 and later, NDIS defines the NDIS_STRING type as a UNICODE_STRING type.

Requirements

Version

See NdisEqualString.

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

See also

ANSI_STRING
MiniportInitialize
NdisInitializeString
ProtocolBindAdapter
UNICODE_STRING

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft