BOOL OemToChar(lpszOemStr, lpszStr) | |||||
LPCTSTR lpszOemStr; | /* address of string to translate | */ | |||
LPTSTR lpszStr; | /* address of buffer for translated string | */ |
The OemToChar function translates the string pointed to by the lpszOemStr parameter from the OEM defined character set.
lpszOemStr
Points to a null-terminated string of characters from the OEM-defined character set.
lpszStr
Points to the location where the translated string is to be copied. If the string buffer is large enough, and the OemToChar function is being used as an ANSI function, the lpszStr parameter can be the same as lpszOemStr to translate the string in place. This cannot be done if the OemToChar function is being used as a wide-character function. lpszStr and lpszOemStr cannot overlap if the function is being used as a wide-character function.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
The OemToChar function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).
OemToCharBuff