BOOL CharToOem(lpszSrc, lpszDest) | |||||
LPCTSTR lpszSrc; | /* address of string to convert | */ | |||
LPTSTR lpszDest; | /* address of converted string | */ |
The CharToOem function translates a string into the OEM-defined character set.
lpszSrc
Points to the null-terminated string to convert.
lpszDest
Points to the buffer for the translated string. This parameter can be the same as lpszSrc to translate the string in place if the buffer is large enough.
If the function is successful, the return value is TRUE. Otherwise, the return value is FALSE. This may mean that the parameters were invalid or there was not enough room in the destination buffer.
The CharToOem 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).
CharToOemBuff, OemToChar, OemToCharBuff