Export (0) Print
Expand All
Expand Minimize

MNLS_CompareStringW

Office 2013

Published: July 16, 2012

Compares two Unicode strings.

int MNLS_CompareStringW (
  LCID lcid,
  DWORD dwFlags,
  LPCWSTR pstr1,
  int cch1,
  LPCWSTR pstr2,
  int cch2);

lcid

[in] Locale identifier. For detailed definitions, see the Locale parameter of CompareString.

dwFlags

[in] Flags to ignore case and diacritics. For detailed definitions, see the dwCmpFlags parameter of CompareStringEx.

pstr1

[in] Pointer to the first Unicode string to compare.

cch1

[in] Length in characters of the first Unicode string, excluding the terminating null character. The application can supply a negative value if the string is null-terminated. In this case, the MNLS_CompareStringW function determines the length automatically.

pstr2

[in] Pointer to the second Unicode string to compare.

cch2

[in] Length in characters of the second Unicode string, excluding the terminating null character. The application can supply a negative value if the string is null-terminated. In this case, the function determines the length automatically.

Returns the values described for CompareStringEx.

This function wraps CompareStringW. MNLS_CompareStringW takes the same parameters and has the same behavior as CompareStringW.

Community Additions

ADD
Show:
© 2014 Microsoft