The CharLower function converts a character string or a single character to lowercase. If the operand is a character string, the function converts the characters in place.
LPTSTR CharLower(
LPTSTR lpsz // single character or pointer to string
);
If the operand is a character string, the function returns a pointer to the converted string. Since the string is converted in place, the return value is equal to lpsz.
If the operand is a single character, the return value is a 32-bit value whose high-order word is zero, and low-order word contains the converted character.
There is no indication of success or failure. Failure is rare. There is no extended error information for this function; do not call GetLastError.
Windows NT: To make the conversion, the function uses the language driver for the current language selected by the user at setup or by using the Control Panel. If no language has been selected, Windows NT completes the conversion by using internal default mapping. The conversion is made based on the code page associated with the process locale.
Windows 95: The function makes the conversion based on the information associated with the user's default locale, which is the locale selected by the user at setup or by using the Control Panel. Windows 95 does not have language drivers.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
String Manipulation Overview, String Manipulation Functions, CharLowerBuff, CharUpper, CharUpperBuff