The lstrcmp function compares two character strings. The comparison is case sensitive.
int lstrcmp(
LPCTSTR lpString1, // address of first string
LPCTSTR lpString2 // address of second string
);
Parameters
lpString1
Points to the first null-terminated string to be compared.
lpString2
Points to the second null-terminated string to be compared.
Return Values
If the function succeeds and the string pointed to by lpString1 is less than the string pointed to by lpString2, the return value is negative; if the string pointed to by lpString1 is greater than the string pointed to by lpString2, it is positive. If the strings are equal, the return value is zero.