Group: String - Library: user32
Translates a string from the OEM-defined character set into either an ANSI or a wide-character string.
Converting strings between ANSI and OEM
BOOL OemToChar(
LPCSTR lpszSrc, // string to translate
LPTSTR lpszDst // translated string
);
DECLARE SHORT OemToChar IN user32;
STRING lpszSrc,;
STRING @ lpszDst
lpszSrc [in] Pointer to a null-terminated string of characters from the OEM-defined character set.
lpszDst [out] Pointer to the buffer for the translated string.
The return value is always nonzero except when you pass the same address to lpszSrc and lpszDst in the wide-character version of the function. In this case the function returns zero and GetLastError returns ERROR_INVALID_ADDRESS.