网站首页  词典首页

请输入您要查询的函数:

 

术语 enumdateformatsex
释义 EnumDateFormatsEx
语法:
BOOL EnumDateFormatsEx(
__in DATEFMT_ENUMPROCEX lpDateFmtEnumProcEx,
__in LCID Locale,
__in DWORD dwFlags
);
EnumDateFormatsEx功能
枚举长日期,短日期,或年/月的格式通常是一个指定的地点提供。
注意任何应用程序只能在Windows Vista和以后应优先使用EnumDateFormatsExEx这个函数运行。
参数
lpDateFmtEnumProcEx [in]
指向一个应用程序定义的回调函数。有关更多信息,请参阅EnumDateFormatsProcEx。
区域设置 [in]
区域设置标识符指定语言环境的日期格式检索信息。您可以使用MAKELCID宏以创建一个标识符或者使用下列预定义的值之一。
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Windows Vista和更高版本:下面的自定义区域设置标识符也支持。
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
dwFlags [in]
旗指定日期格式。有关详细的定义,见EnumDateFormats dwFlags参数。
返回值
返回一个非零值如果成功,或否则为0。为了获得更多错误信息,应用程序可以调用GetLastError函数,可以返回以下错误代码之一:
ERROR_INVALID_FLAGS。旗帜提供的值不是有效的。
ERROR_INVALID_PARAMETER。该参数值的任何无效。
备注
对于此函数的行动的细节,请参见EnumDateFormats备注。
应用程序应该使用EnumDateFormatsEx列举日历与其他区域设置的日期格式。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesEnumDateFormatsExW(Unicode)和EnumDateFormatsExA(ANSI)的
参见
国家语言支持
国家语言支持功能
EnumDateFormats
EnumDateFormatsExEx
EnumDateFormatsProcEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==EnumDateFormatsEx Function
Enumerates the long date, short date, or year/month formats that are available for a specified locale.
Note Any application that runs only on Windows Vista and later should use EnumDateFormatsExEx in preference to this function.
Syntax
BOOL EnumDateFormatsEx(
__in DATEFMT_ENUMPROCEX lpDateFmtEnumProcEx,
__in LCID Locale,
__in DWORD dwFlags
);
Parameters
lpDateFmtEnumProcEx [in]
Pointer to an application-defined callback function. For more information, see EnumDateFormatsProcEx.
Locale [in]
Locale identifier that specifies the locale for which to retrieve date format information. You can use the MAKELCID macro to create an identifier or use one of the following predefined values.
LOCALE_INVARIANT
LOCALE_SYSTEM_DEFAULT
LOCALE_USER_DEFAULT
Windows Vista and later: The following custom locale identifiers are also supported.
LOCALE_CUSTOM_DEFAULT
LOCALE_CUSTOM_UI_DEFAULT
LOCALE_CUSTOM_UNSPECIFIED
dwFlags [in]
Flag specifying date formats. For detailed definitions, see the dwFlags parameter of EnumDateFormats .
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_INVALID_FLAGS. The values supplied for flags were not valid.
ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
For details of operation of this function, see Remarks in EnumDateFormats .
The application should use EnumDateFormatsEx to enumerate date formats for locales with alternate calendars.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesEnumDateFormatsExW (Unicode) and EnumDateFormatsExA (ANSI)
See Also
National Language Support
National Language Support Functions
EnumDateFormats
EnumDateFormatsExEx
EnumDateFormatsProcEx
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd317811(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:05