EnumTimeFormats (Windows Embedded CE 6.0)
1/6/2010
This function enumerates the time formats that are available for a specified locale.
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] Value that 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. The following table shows the values this parameter can take.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 Value
Nonzero indicates success. Zero indicates failure. To get extended error information, call the GetLastError) function. The following table shows possible return values for the GetLastError function.
Value | Description |
---|---|
ERROR_INVALID_PARAMETER |
The parameter is incorrect. |
For more information about locales, see Language Identifiers and Locales.
Requirements
Header | winnls.h |
Library | Coreloc.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
EnumCalendarInfo
EnumDateFormats
EnumTimeFormatsProc
MAKELCID
Concepts
Language Identifiers and Locales