This documentation is archived and is not being maintained.


Office 2010

Last modified: September 19, 2011

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Compares two Unicode strings.

int MNLS_lstrcmpW(
  LPCWSTR lpString1,
  LPCWSTR lpString2);


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


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

Returns the values described for an equivalent call to MNLS_CompareStringW except for CSTR_EQUAL.

MNLS_lstrcmpW performs a comparison by calling MNLS_CompareStringW with a locale of GetUserDefaultLCID, 0 for flags, and -1 for cch1 and cch2.