OemToAnsi

  int OemToAnsi(lpSrc, lpDst)    
  LPSTR lpSrc;    
  LPSTR lpDst;    

The OemToAnsi function translates a string in the current OEM character set to ANSI.

Parameters

lpSrc

Points to the input ANSI string.

lpDst

Points to the output OEM string.

Return Value

The return value is 0FFFF in the AX register.

Comments

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, OemToAnsiBuff