EnumCalendarInfoExEx function
Enumerates calendar information for a locale specified by name.
Syntax
BOOL EnumCalendarInfoExEx( _In_ CALINFO_ENUMPROCEXEX pCalInfoEnumProcExEx, _In_opt_ LPCWSTR lpLocaleName, _In_ CALID Calendar, _In_opt_ LPCWSTR lpReserved, _In_ CALTYPE CalType, _In_ LPARAM lParam );
Parameters
- pCalInfoEnumProcExEx [in]
-
Pointer to an application-defined callback function. For more information, see EnumCalendarInfoProcExEx.
- lpLocaleName [in, optional]
-
Pointer to a locale name, or one of the following predefined values.
- Calendar [in]
-
Calendar identifier that specifies the calendar for which information is requested. Note that this identifier can be ENUM_ALL_CALENDARS, to enumerate all calendars that are associated with the locale.
- lpReserved [in, optional]
-
Reserved; must be NULL.
- CalType [in]
-
Type of calendar information. For more information, see Calendar Type Information. Only one calendar type can be specified per call to this function, except where noted.
- lParam [in]
-
Application-provided parameter to pass to the callback function. This value is especially useful for multi-threaded applications.
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
This function enumerates calendar information for all applicable calendars for the specified locale, or for a single requested calendar, depending on the value of the Calendar parameter. The function enumerates the calendar information by calling the specified application-defined callback function. It passes the callback function a pointer to a buffer containing the requested calendar information, a calendar identifier, and an application-defined parameter that is useful for multi-threaded applications. This process continues until EnumCalendarInfoExEx finds the last applicable calendar or the callback function returns FALSE.
Beginning in Windows 8: If your app passes language tags to this function from the Windows.Globalization namespace, it must first convert the tags by calling ResolveLocaleName.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- National Language Support
- National Language Support Functions
- Calendar Type Information
- EnumCalendarInfo
- EnumCalendarInfoEx
- EnumCalendarInfoProcExEx
- EnumDateFormatsExEx