__crtLCMapStringW
Maps one character string to another, performing a specified locale-dependent transformation. This function can also be used to generate a sort key for the input string.
int __crtLCMapStringW( LCID Locale, DWORD dwMapFlags, LPCWSTR lpSrcStr, int cchSrc, LPWSTR lpDestStr, int cchDest)
If the value of cchDest is nonzero, the number of characters, or bytes if LCMAP_SORTKEY is specified, written to the buffer indicates success. This count includes room for a NULL terminator.
If the value of cchDest is zero, the size of the buffer in characters, or bytes if LCMAP_SORTKEY is specified, required to receive the translated string or sort key indicates success. This size includes room for a NULL terminator.
Zero indicates failure. To get extended error information, call the GetLastError function.
If cchSrc is greater than zero and lpSrcStr is a null-terminated string, __crtLCMapStringW sets cchSrc to the length of the string. Then __crtLCMapStringW calls the wide string (Unicode) version of the LCMapString function with the specified parameters. For more information about the parameters and return value of this function, see the LCMapString function at MSDN Library.