Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compares two Unicode strings. Digits in the strings are considered as numerical content rather than text. This test is not case-sensitive.
int StrCmpLogicalW(
[in] PCWSTR psz1,
[in] PCWSTR psz2
);
[in] psz1
Type: PCWSTR
A pointer to the first null-terminated string to be compared.
[in] psz2
Type: PCWSTR
A pointer to the second null-terminated string to be compared.
Type: int
This function's ordering schema differs somewhat from StrCmpI, which also compares strings without regard to case sensitivity. Considering digits by their numerical value—as StrCmpLogicalW does—strings are ordered as follows:
2string
3string
20string
st2ring
st3ring
st20ring
string2
string3
string20
StrCmpI considers digits in the string only as text so that those same strings are ordered as follows:
20string
2string
3string
st20ring
st2ring
st3ring
string2
string20
string3
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
Library | Shlwapi.lib |
DLL | Shlwapi.dll (version 5.5 or later) |
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!