Platform SDK: International Features |
The EnumDateFormatsProc function is an application defined–callback function used with the EnumDateFormats function. It receives a pointer to a buffer containing a date format string. The DATEFMT_ENUMPROC type defines a pointer to this callback function. EnumDateFormatsProc is a placeholder for the application defined–function name.
BOOL CALLBACK EnumDateFormatsProc( LPTSTR lpDateFormatString // date format string );
To continue enumeration, the callback function should return TRUE.
To stop enumeration, the callback function should return FALSE.
An EnumDateFormatsProc function can carry out any desired task. An application registers an EnumDateFormatsProc function by passing its address to the EnumDateFormats function.
The date format strings are translated from Unicode to ANSI, for the ANSI version of this function, based on the default ANSI code page for the LCID. However, if LOCALE_USE_CP_ACP is specified, the translation is done using the system default ANSI code page.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 98.
Header: Declared in Winnls.h; include Windows.h.
National Language Support Overview, National Language Support Functions, EnumDateFormats