术语 | chartooem |
释义 | CharToOem 语法: BOOL CharToOem( LPCTSTR lpszSrc, LPSTR lpszDst ); CharToOem功能 该CharToOem功能转换一成的OEM字符串定义的字符集。 参数 lpszSrc [in]指向空结束的字符串翻译。 lpszDst [out]指向转换为字符串缓冲区。如果CharToOem功能被作为一个ANSI函数中使用,该字符串可以被翻译到位设置lpszDst参数作为lpszSrc参数相同的地址。这不能这样做,如果CharToOem被用作宽字符函数中使用。 返回值 返回值始终是非零除非您传递相同的地址lpszSrc和广泛的功能性版本lpszDst。在这种情况下,函数返回0,GetLastError返回ERROR_INVALID_ADDRESS。 备注 在Windows 95/98/Me:CharToOemW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.1 UnicodeImplemented为ANSI和Unicode版本。 参见 Strings 概述 ,CharToOemBuff,OemToChar,OemToCharBuff ==英文原文==CharToOem Function The CharToOem function translates a string into the OEM-defined character set. Syntax BOOL CharToOem( LPCTSTR lpszSrc, LPSTR lpszDst ); Parameters lpszSrc [in] Pointer to the null-terminated string to translate. lpszDst [out] Pointer to the buffer for the translated string. If the CharToOem 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 CharToOem is being used as a wide-character function. Return Value 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. Remarks Windows 95/98/Me: CharToOemW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems . Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.1 UnicodeImplemented as ANSI and Unicode versions. See Also Strings Overview , CharToOemBuff , OemToChar , OemToCharBuff ==原始网址==http://msdn.microsoft.com/en-us/library/ms647473(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。