Freigeben über


EnumTimeFormats (Windows CE 5.0)

Send Feedback

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

BOOLEnumTimeFormats(TIMEFMT_ENUMPROClpTimeFmtEnumProc, LCIDLocale, DWORDdwFlags );

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 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.

Value Description
ERROR_INVALID_PARAMETER The parameter is incorrect.
ERROR_BADDB The configuration registry database is corrupt.
ERROR_INVALID FLAGS The 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.