EnumTimeFormats

This function enumerates the time formats that are available for a specified locale.

At a Glance

Header file: Winnls.h
Windows CE versions: 1.0 and later

Syntax

BOOL EnumTimeFormats(TIMEFMT_ENUMPROC lpTimeFmtEnumProc, LCID Locale, DWORD dwFlags);

Parameters

lpTimeFmtEnumProc

[in] Pointer to an application-defined callback function. See the EnumTimeFormatsProc callback function for further details.

Locale

[in] Specifies the locale to retrieve time format information for. This parameter can be a locale identifier created by the MAKELCID macro, or one of the following predefined values:

Value Description
LOCALE_SYSTEM_DEFAULT Default system locale.
LOCALE_USER_DEFAULT Default user locale.
LOCALE_NEUTRAL Default language-neutral locale.

dwFlags

[in] Currently unused; set to zero.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. Possible values for GetLastError include the following:

See Also

EnumCalendarInfo, EnumDateFormats, EnumTimeFormatsProc