Compartilhar via


EnumCalendarInfoProcExEx callback function

An application-defined callback function that processes enumerated calendar information provided by the EnumCalendarInfoExEx function. The CALINFO_ENUMPROCEXEX type defines a pointer to this callback function. EnumCalendarInfoProcExEx is a placeholder for the application-defined function name.

Syntax

BOOL CALLBACK EnumCalendarInfoProcExEx(
  _In_ LPWSTR lpCalendarInfoString,
  _In_ CALID  Calendar,
  _In_ LPWSTR lpReserved,
  _In_ LPARAM lParam
);

Parameters

  • lpCalendarInfoString [in]
    Pointer to a buffer containing a null-terminated calendar information string. This string is formatted according to the calendar type passed to EnumCalendarInfoExEx.

  • Calendar [in]
    Calendar identifier that specifies the calendar associated with the specified information.

  • lpReserved [in]
    Reserved; must be NULL.

  • lParam [in]
    An application-provided input parameter of EnumCalendarInfoExEx. This value is especially useful for multi-threaded applications, since it can be used to pass thread-specific data to this callback function.

Return value

Returns TRUE to continue enumeration or FALSE otherwise.

Remarks

An EnumCalendarInfoProcExEx function can carry out any desired task. The application registers this function by passing its address to the EnumCalendarInfoExEx function.

This callback function can process enumerated data from custom locales. Data is not guaranteed to be the same from computer to computer or between runs of an application. If your application must persist or transmit data, see Using Persistent Locale Data.

Requirements

Minimum supported client

Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 [desktop apps | UWP apps]

Header

Winnls.h (include Windows.h)

See also

National Language Support

National Language Support Functions

EnumCalendarInfoExEx