NdisEqualUnicodeString function

The NdisEqualUnicodeString function compares two Unicode strings and returns whether they are equal.

Syntax


BOOLEAN NdisEqualUnicodeString(
  _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 Unicode string.

String2 [in]

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

CaseInSensitive [in]

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

Return value

NdisEqualUnicodeString returns TRUE if the two Unicode strings are equal.

Remarks

Starting with Windows 2000 and later drivers, 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

Version

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

Header

Ndis.h (include Ndis.h)

IRQL

PASSIVE_LEVEL

DDI compliance rules

Irql_Miscellaneous_Function

See also

UNICODE_STRING

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft