共用方式為


MNLS_CompareStringW

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Compares two Unicode strings.

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

Parameters

  • 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.

Return Value

Returns the values described for CompareStringEx.

Remarks

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

See Also

Other Resources

CompareStringW

CompareStringEx