术语 | chartooembuff |
释义 | CharToOemBuff 语法: BOOL CharToOemBuff( LPCTSTR lpszSrc, LPSTR lpszDst, DWORD cchDstLength ); CharToOemBuff功能 功能转换的CharToOemBuff在这一OEM字符串指定数目的字符定义的字符集。 参数 lpszSrc [in]指向空结束的字符串翻译。 lpszDst [out]指向转换为字符串缓冲区。如果CharToOemBuff功能被作为一个ANSI函数中使用,该字符串可以被翻译到位设置lpszDst参数作为lpszSrc参数相同的地址。这不能这样做,如果CharToOemBuff被用作宽字符函数中使用。 cchDstLength [in]指定TCHARs人数翻译由lpszSrc参数确定的字符串。这是指对函数或Unicode版本WCHARs ANSI版本字节。 返回值 返回值始终是非零除非您传递相同的地址lpszSrc和广泛的功能性版本lpszDst。在这种情况下,函数返回0,GetLastError返回ERROR_INVALID_ADDRESS。 备注 不像CharToOem功能,CharToOemBuff函数不会停止转换字符时,遇到在缓冲区空字符指向lpszSrc。该CharToOemBuff功能转换所有cchDstLength字符。 在Windows 95/98/Me:CharToOemBuffW是支持的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 概述 ,CharToOem,OemToChar,OemToCharBuff ==英文原文==CharToOemBuff Function The CharToOemBuff function translates a specified number of characters in a string into the OEM-defined character set. Syntax BOOL CharToOemBuff( LPCTSTR lpszSrc, LPSTR lpszDst, DWORD cchDstLength ); Parameters lpszSrc [in] Pointer to the null-terminated string to translate. lpszDst [out] 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 [in] Specifies the number of TCHARs to translate in the string identified by the lpszSrc parameter. This refers to bytes for ANSI versions of the function or WCHARs for Unicode versions. 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 Unlike the CharToOem function, the CharToOemBuff function does not stop converting characters when it encounters a null character in the buffer pointed to by lpszSrc. The CharToOemBuff function converts all cchDstLength characters. Windows 95/98/Me: CharToOemBuffW 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 , CharToOem , OemToChar , OemToCharBuff ==原始网址==http://msdn.microsoft.com/en-us/library/ms649065(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。