Export (0) Print
Expand All

EnumTimeFormats (Windows CE 5.0)

Windows CE 5.0
Send Feedback

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

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.
ValueDescription
LOCALE_SYSTEM_DEFAULTDefault system locale.
LOCALE_USER_DEFAULTDefault user locale.
LOCALE_NEUTRALDefault language-neutral locale.
dwFlags
[in] Currently unused; set to zero.

Return Values

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.

ValueDescription
ERROR_INVALID_PARAMETERThe parameter is incorrect.
ERROR_BADDBThe configuration registry database is corrupt.
ERROR_INVALID FLAGSThe flags are invalid.

For more information about locales, see Language Identifiers and Locales.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winnls.h.
Link Library: Coreloc.lib.

See Also

Language Identifiers and Locales | EnumCalendarInfo | EnumDateFormats | EnumTimeFormatsProc | MAKELCID


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft