Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Enumerates the long date, short date, or year/month formats that are available for a locale specified by name.
Syntax
BOOL EnumDateFormatsExEx(
[in] DATEFMT_ENUMPROCEXEX lpDateFmtEnumProcExEx,
[in, optional] LPCWSTR lpLocaleName,
[in] DWORD dwFlags,
[in] LPARAM lParam
);
Parameters
[in] lpDateFmtEnumProcExEx
Pointer to an application-defined callback function. For more information, see EnumDateFormatsProcExEx.
[in, optional] lpLocaleName
Pointer to a locale name, or one of the following predefined values.
[in] dwFlags
Flag specifying date formats. The application can supply one of the following values or the LOCALE_USE_CP_ACP constant.
[in] lParam
An application-provided parameter to pass to the callback function. This value is especially useful for multi-threaded applications.
Return value
Returns a nonzero value if successful, or 0 otherwise. To get extended error information, the application can call GetLastError, which can return one of the following error codes:
- ERROR_BADDB. The function could not access the data. This situation should not normally occur, and typically indicates a bad installation, a disk problem, or the like.
- ERROR_INVALID_FLAGS. The values supplied for flags were not valid.
- ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
Beginning in Windows 8: If your app passes language tags to this function from the Windows.Globalization namespace, it must first convert the tags by calling ResolveLocaleName.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | winnls.h (include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |