Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
AnsiToOem
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD AnsiToOem(lpSrc, lpDst)
LPSTR lpSrc;
LPSTR lpDst;
 
The AnsiToOem function translates a string in the ANSI character set to a
string in the OEM character set. For most computers, the OEM character set
is code page 437.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lpSrc      Points to the input ANSI string.
 
lpDst      Points to the output OEM string.
 
Return Value
 
The return value is always 0FFFF in the AX register if the function is
successful.
 
Comments
 
The export ordinal for this function is 5.
 
The lpSrc and lpDst parameters may point to the 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
 
AnsiToOemBuff, OemToAnsi