网站首页  词典首页

请输入您要查询的函数:

 

术语 getacp
释义 GetACP
语法:
UINT GetACP(void);
GetACP功能
检索当前的Windows的ANSI代码页的操作系统识别。
谨慎的ANSI的API功能,例如,TextOut ANSI版本,含蓄地使用GetACP翻译文本或从Unicode。对于多语言用户界面(MUI)版本的Windows,系统可能不包括机场核心计划在用户选定的登录语言识别所有的代码点。对于这个版本的兼容性,应用程序应避免调用依赖于GetACP明确或暗示地,因为这功能可能会导致有些地方显示为问号文本。相反,应用程序应该使用Unicode API函数直接,例如,对TextOut Unicode版本。
参数
这个函数没有参数。
返回值
返回当前的Windows ANSI代码页(ACP)的标识符操作系统。见一对Windows的ANSI代码页和其他代码页标识符列表代码页标识符。
备注
在ANSI代码页可以是不同的不同的计算机上,或可用于一台计算机改变,导致数据损坏。对于大多数一致的结果,应用程序应该使用UTF - 8或UTF - 16在可能的。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
国家语言支持
国家语言支持功能
代码页标识符
GetCPInfo
GetOEMCP
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==GetACP Function
Retrieves the current Windows ANSI code page identifier for the operating system.
Caution The ANSI API functions, for example, the ANSI version of TextOut , implicitly use GetACP to translate text to or from Unicode. For the Multilingual User Interface (MUI) edition of Windows, the system ACP might not cover all code points in the user's selected logon language identifier. For compatibility with this edition, your application should avoid calls that depend on GetACP either implicitly or explicitly, as this function can cause some locales to display text as question marks. Instead, the application should use the Unicode API functions directly, for example, the Unicode version of TextOut .
Syntax
UINT GetACP(void);
Parameters
This function has no parameters.
Return Value
Returns the current Windows ANSI code page (ACP) identifier for the operating system. See Code Page Identifiers for a list of identifiers for Windows ANSI code pages and other code pages.
Remarks
The ANSI code pages can be different on different computers, or can be changed for a single computer, leading to data corruption. For the most consistent results, applications should use UTF-8 or UTF-16 when possible.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
National Language Support
National Language Support Functions
Code Page Identifiers
GetCPInfo
GetOEMCP
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd318070(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:23:10