Partager via


EnumDateFormatsProcExEx callback function

An application-defined function that processes enumerated date format information provided by the EnumDateFormatsExEx function. The DATEFMT_ENUMPROCEXEX type defines a pointer to this callback function. EnumDateFormatsProcExEx is a placeholder for the application-defined function name.

Syntax

BOOL CALLBACK EnumDateFormatsProcExEx(
  _In_ LPWSTR lpDateFormatString,
  _In_ CALID  CalendarID,
  _In_ LPARAM lParam
);

Parameters

  • lpDateFormatString [in]
    Pointer to a buffer containing a null-terminated date format string. This string is a long or short date format, depending on the value of the dwFlags parameter passed to EnumDateFormatsExEx.

  • CalendarID [in]
    Calendar identifier associated with the specified date format string.

  • lParam [in]
    An application-provided input parameter of EnumDateFormatsExEx. This parameter 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 EnumDateFormatsProcExEx function can carry out any desired task. An application registers this function by passing its address to the EnumDateFormatsExEx 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

EnumDateFormatsExEx