|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This function compares two character strings, using the locale specified by the identifier as the basis for the comparison.
int CompareString( LCID Locale, DWORD dwCmpFlags, LPCTSTR lpString1, int cchCount1, LPCTSTR lpString2, int cchCount2 );
|LOCALE_SYSTEM_DEFAULT||The system's default locale|
|LOCALE_USER_DEFAULT||The current user's default locale|
This parameter can also be a locale identifier created by the MAKELCIDmacro.
One of the following values indicates success:
Zero indicates failure, and GetLastErrormay return one of the following error values:
If the return value is 2, the two strings are equal in the collation sense, though not necessarily identical.
To maintain the C run-time convention of comparing strings, the return value for strings that are equal can be 0, instead of 2.
Currently, this function is available only in Windows CE version 2.10.
|Runs on||Versions||Defined in||Include||Link to|
|Windows CE OS||2.10 and later|
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004