网站首页  词典首页

请输入您要查询的函数:

 

术语 oemtochar
释义 OemToChar
语法:
BOOL OemToChar( LPCSTR lpszSrc,
LPTSTR lpszDst
);
OemToChar功能
功能转换的OemToChar从OEM字符串定义设置到任何一个ANSI或宽字符字符串的字符。
参数
lpszSrc
[in]指向一个空结束的从OEM字符串定义的字符集。
lpszDst
[out]指向转换为字符串缓冲区。如果OemToChar功能被作为一个ANSI函数中使用,该字符串可以被翻译到位设置lpszDst参数作为lpszSrc参数相同的地址。这不能这样做,如果OemToChar被用作宽字符函数中使用。
返回值
返回值始终是非零除非您传递相同的地址lpszSrc和广泛的功能性版本lpszDst。在这种情况下,函数返回0,GetLastError返回ERROR_INVALID_ADDRESS。
备注
在Windows 95/98/Me:OemToCharW是支持的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,OemToCharBuff
==英文原文==OemToChar Function
The OemToChar function translates a string from the OEM-defined character set into either an ANSI or a wide-character string.
Syntax
BOOL OemToChar( LPCSTR lpszSrc,
LPTSTR lpszDst
);
Parameters
lpszSrc
[in] Pointer to a null-terminated string of characters from the OEM-defined character set.
lpszDst
[out] Pointer to the buffer for the translated string. If the OemToChar 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 OemToChar 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: OemToCharW 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 , OemToCharBuff
==原始网址==http://msdn.microsoft.com/en-us/library/ms647493(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:27:58