Previous Next

NdisEqualString

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

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

Parameters

String1
Pointer to an NDIS_STRING type that describes the first string.
String2
Pointer to an NDIS_STRING type that describes the second string.
CaseInsensitive
Specifies TRUE if case should be ignored when doing the comparison.

Return Value

NdisEqualString returns TRUE if the two strings are equal.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

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

Callers of NdisEqualString run at IRQL = PASSIVE_LEVEL.

See Also

ANSI_STRING, MiniportInitialize, NdisInitializeString, ProtocolBindAdapter, UNICODE_STRING