网站首页  词典首页

请输入您要查询的函数:

 

术语 oemtocharbuff
释义 OemToCharBuff
语法:
BOOL OemToCharBuff( LPCTSTR lpszSrc,
LPTSTR lpszDst,
DWORD cchDstLength
);
OemToCharBuff功能
功能转换的OemToCharBuff在从OEM字符串指定数目的字符定义设置到任何一个ANSI或宽字符字符串的字符。
参数
lpszSrc
[in]指向一个缓冲区包含从OEM一个或多个字符定义的字符集。
lpszDst
[out]指向转换为字符串缓冲区。如果OemToCharBuff功能被作为一个ANSI函数中使用,该字符串可以被翻译到位设置lpszDst参数作为lpszSrc参数相同的地址。这不能这样做,如果OemToCharBuff功能,目前正在作为一个宽字符函数中使用。
cchDstLength
[in]指定TCHARs人数翻译由lpszSrc参数确定的缓冲区。这是指对函数或Unicode版本WCHARs ANSI版本字节。
返回值
返回值始终是非零除非您传递相同的地址lpszSrc和广泛的功能性版本lpszDst。在这种情况下,函数返回0,GetLastError返回ERROR_INVALID_ADDRESS。
备注
不像OemToChar功能,OemToCharBuff函数不会停止转换字符时,遇到在缓冲区空字符指向lpszSrc。该OemToCharBuff功能转换所有cchDstLength字符。
在Windows 95/98/Me:OemToCharBuffW是支持的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,CharToOemBuff,OemToChar
==英文原文==OemToCharBuff Function
The OemToCharBuff function translates a specified number of characters in a string from the OEM-defined character set into either an ANSI or a wide-character string.
Syntax
BOOL OemToCharBuff( LPCTSTR lpszSrc,
LPTSTR lpszDst,
DWORD cchDstLength
);
Parameters
lpszSrc
[in] Pointer to a buffer containing one or more characters from the OEM-defined character set.
lpszDst
[out] Pointer to the buffer for the translated string. If the OemToCharBuff 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 the OemToCharBuff function is being used as a wide-character function.
cchDstLength
[in] Specifies the number of TCHARs to translate in the buffer 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 OemToChar function, the OemToCharBuff function does not stop converting characters when it encounters a null character in the buffer pointed to by lpszSrc. The OemToCharBuff function converts all cchDstLength characters.
Windows 95/98/Me: OemToCharBuffW 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 , CharToOemBuff , OemToChar
==原始网址==http://msdn.microsoft.com/en-us/library/ms647494(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:31:15