网站首页  词典首页

请输入您要查询的函数:

 

术语 enumsystemcodepages
释义 EnumSystemCodePages
语法:
BOOL EnumSystemCodePages(
__in CODEPAGE_ENUMPROC lpCodePageEnumProc,
__in DWORD dwFlags
);
EnumSystemCodePages功能
枚举的代码,要么在安装或支持的操作系统的网页。
参数
lpCodePageEnumProc [in]
指向一个应用程序定义的回调函数。枚举函数的EnumSystemCodePages一再呼吁使这个回调函数的代码页。有关更多信息,请参阅EnumCodePagesProc。
dwFlags [in]
旗指定的代码页来枚举。此参数可以有以下值,这是互相排斥的。
ValueMeaning
CP_INSTALLEDEnumerate只安装代码页。
CP_SUPPORTEDEnumerate所有支持的代码页。
返回值
返回一个非零值如果成功,或否则为0。为了获得更多错误信息,应用程序可以调用GetLastError函数,可以返回以下错误代码之一:
ERROR_BADDB。该函数不能访问数据。这种情况不应该normall发生,通常表明一个坏的安装,磁盘的问题,或类似。
ERROR_INVALID_FLAGS。旗帜提供的值不是有效的。
ERROR_INVALID_PARAMETER。该参数值的任何无效。
备注
这个函数通过传递枚举代码页标识符,一次一个,到指定的应用程序的代码页定义的回调函数。这一进程继续进行,直到所有已安装或支持的代码页标识符已经传递给回调函数,或回调函数返回FALSE。
当一个应用程序正在使用此函数保存数据,以确定适当的代码页,它应该尽可能使用Unicode。其他代码网页不会被移植为Unicode供应商之间或操作系统,由于相关标准的不同实现。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesEnumSystemCodePagesW(Unicode)和EnumSystemCodePagesA(ANSI)的
参见
国家语言支持
国家语言支持功能
EnumCodePagesProc
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==EnumSystemCodePages Function
Enumerates the code pages that are either installed on or supported by an operating system.
Syntax
BOOL EnumSystemCodePages(
__in CODEPAGE_ENUMPROC lpCodePageEnumProc,
__in DWORD dwFlags
);
Parameters
lpCodePageEnumProc [in]
Pointer to an application-defined callback function. The EnumSystemCodePages function enumerates code pages by making repeated calls to this callback function. For more information, see EnumCodePagesProc .
dwFlags [in]
Flag specifying the code pages to enumerate. This parameter can have one of the following values, which are mutually exclusive.
ValueMeaning
CP_INSTALLEDEnumerate only installed code pages.
CP_SUPPORTEDEnumerate all supported code pages.

Return Value
Returns a nonzero value if successful, or 0 otherwise. To get extended error information, the application can call GetLastError , which can return one of the following error codes:
ERROR_BADDB. The function could not access the data. This situation should not normall occur, and typically indicates a bad installation, a disk problem, or the like.
ERROR_INVALID_FLAGS. The values supplied for flags were not valid.
ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
This function enumerates the code pages by passing code page identifiers, one at a time, to the specified application-defined callback function. This process continues until all installed or supported code page identifiers have been passed to the callback function, or the callback function returns FALSE.
When an application is using this function to determine an appropriate code page for saving data, it should use Unicode when possible. Other code pages are not as portable as Unicode between vendors or operating systems, due to different implementations of the associated standards.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesEnumSystemCodePagesW (Unicode) and EnumSystemCodePagesA (ANSI)
See Also
National Language Support
National Language Support Functions
EnumCodePagesProc
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd317825(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 13:26:11