|  | Overview |  | 
|  | 
|  | Group |  | 
|  | 
|  | Quick Info 
 | Windows NT 
 | Yes 
 |  | Win95 
 | Yes 
 |  | Win32s 
 | Yes 
 |  | Import Library 
 | user32.lib 
 |  | Header File 
 | winuser.h 
 |  | Unicode 
 | WinNT 
 |  | Platform Notes 
 | None 
 | 
 |  | 
 
CharToOemBuff
The 
CharToOemBuff function translates a specified number of characters in a string into the
OEM-defined character set. (OEM stands for original equipment manufacturer.) This
function supersedes the 
AnsiToOemBuff function.
BOOL CharToOemBuff(
| LPCTSTR lpszSrc, 
 | // pointer to string to translate 
 | 
| LPSTR lpszDst, 
 | // pointer to translated string 
 | 
| DWORD cchDstLength 
 | // length of string to translate, in characters 
 | 
| ); 
 | 
 | 
 
Parameters
lpszSrc
Pointer to the null-terminated string to translate. 
lpszDst
Pointer to the buffer for the translated string. If the 
CharToOemBuff function is being used as an ANSI function, the string can be translated in
place by setting the 
lpszDst parameter to the same address as the 
lpszSrc parameter. This cannot be done if 
CharToOemBuff is being used as a wide-character function. 
cchDstLength
Specifies the number of characters to translate in the string identified by
the 
lpszSrc parameter. 
 
Return Values
The return value is always nonzero. 
See Also
CharToOem, 
OemToChar, 
OemToCharBuff
			
				- Software for developers
				
- 
				Delphi Components
 .Net Components
 Software for Android Developers
- More information resources
				
- 
				MegaDetailed.Net
 Unix Manual Pages
 Delphi Examples