OemToAnsi

int OemToAnsi(
  LPSTR lpSrc, 
  LPSTR lpDst
 );

Translates a string in the current OEM character set to ANSI.

lpSrc and lpDst
Address of the input ANSI string, and the output OEM string.

The export ordinal for this function is 6.

The lpSrc and lpDst parameters may point to the same buffer.

The code page used to translate the character depends on the current code page (as set when Windows calls the Enable function). For most drivers, the default translation is code page 437 (the standard U.S. IBM-PC character set).

Strings longer than 64K may be translated.

See Also

AnsiToOem, Enable, OemToAnsiBuff