Microsoft KB Archive/241682

{|
 * width="100%"|

DOC: CompareString Can Compare Partial Strings

 * }

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 kbGrpDSIntl kbDSupport

Issue type :

Technology : kbAudDeveloper kbWin32sSearch kbWin32API