DOC: CompareString() Can Compare Partial Strings

ID: Q241682


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API)


SUMMARY

The CompareString function can compare partial strings. The documentation is not very clear on this point; the documentation should read:

cchCount1 - [in] Specifies the number of TCHARs of the string pointed to by the lpString1 parameter to be compared. The count does not include the null terminator. If this parameter is -1, the string is assumed to be null terminated and the length is calculated automatically.
This information also applies to the cchCount2 parameter.

Additional query words:

Keywords : kbdocfix kbSDKPlatform kbGrpIntl kbDSupport
Version : winnt:
Platform : winnt
Issue type :


Last Reviewed: December 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.