| 1 |
/** |
| 2 |
* This file is part of the mingw-w64 runtime package. |
| 3 |
* No warranty is given; refer to the file DISCLAIMER within this package. |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef _DATETIMEAPI_H_ |
| 7 |
#define _DATETIMEAPI_H_ |
| 8 |
|
| 9 |
#include <apiset.h> |
| 10 |
#include <apisetcconv.h> |
| 11 |
#include <minwindef.h> |
| 12 |
#include <minwinbase.h> |
| 13 |
|
| 14 |
#ifdef __cplusplus |
| 15 |
extern "C" { |
| 16 |
#endif |
| 17 |
|
| 18 |
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) |
| 19 |
WINBASEAPI int WINAPI GetTimeFormatEx (LPCWSTR lpLocaleName, DWORD dwFlags, CONST SYSTEMTIME *lpTime, LPCWSTR lpFormat, LPWSTR lpTimeStr, int cchTime); |
| 20 |
WINBASEAPI int WINAPI GetDateFormatEx (LPCWSTR lpLocaleName, DWORD dwFlags, CONST SYSTEMTIME *lpDate, LPCWSTR lpFormat, LPWSTR lpDateStr, int cchDate, LPCWSTR lpCalendar); |
| 21 |
#endif |
| 22 |
|
| 23 |
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) |
| 24 |
WINBASEAPI int WINAPI GetDateFormatA (LCID Locale, DWORD dwFlags, CONST SYSTEMTIME *lpDate, LPCSTR lpFormat, LPSTR lpDateStr, int cchDate); |
| 25 |
WINBASEAPI int WINAPI GetDateFormatW (LCID Locale, DWORD dwFlags, CONST SYSTEMTIME *lpDate, LPCWSTR lpFormat, LPWSTR lpDateStr, int cchDate); |
| 26 |
WINBASEAPI int WINAPI GetTimeFormatA (LCID Locale, DWORD dwFlags, CONST SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpTimeStr, int cchTime); |
| 27 |
WINBASEAPI int WINAPI GetTimeFormatW (LCID Locale, DWORD dwFlags, CONST SYSTEMTIME *lpTime, LPCWSTR lpFormat, LPWSTR lpTimeStr, int cchTime); |
| 28 |
|
| 29 |
#define GetDateFormat __MINGW_NAME_AW(GetDateFormat) |
| 30 |
#define GetTimeFormat __MINGW_NAME_AW(GetTimeFormat) |
| 31 |
|
| 32 |
#endif |
| 33 |
|
| 34 |
#ifdef __cplusplus |
| 35 |
} |
| 36 |
#endif |
| 37 |
#endif |