#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _DATETIMEAPI_H_
#define _DATETIMEAPI_H_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#include <minwinbase.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
int
(
_In_opt_ CONST SYSTEMTIME* lpDate,
_In_opt_ LPCSTR lpFormat,
_Out_writes_opt_(cchDate) LPSTR lpDateStr,
);
int
(
_In_opt_ CONST SYSTEMTIME* lpDate,
_In_opt_ LPCWSTR lpFormat,
_Out_writes_opt_(cchDate) LPWSTR lpDateStr,
);
#ifdef UNICODE
#define GetDateFormat GetDateFormatW
#else
#define GetDateFormat GetDateFormatA
#endif // !UNICODE
int
(
_In_opt_ CONST SYSTEMTIME* lpTime,
_In_opt_ LPCSTR lpFormat,
_Out_writes_opt_(cchTime) LPSTR lpTimeStr,
);
int
(
_In_opt_ CONST SYSTEMTIME* lpTime,
_In_opt_ LPCWSTR lpFormat,
_Out_writes_opt_(cchTime) LPWSTR lpTimeStr,
);
#ifdef UNICODE
#define GetTimeFormat GetTimeFormatW
#else
#define GetTimeFormat GetTimeFormatA
#endif // !UNICODE
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
int
(
_In_opt_ LPCWSTR lpLocaleName,
_In_opt_ CONST SYSTEMTIME* lpTime,
_In_opt_ LPCWSTR lpFormat,
_Out_writes_opt_(cchTime) LPWSTR lpTimeStr,
);
int
(
_In_opt_ LPCWSTR lpLocaleName,
_In_opt_ CONST SYSTEMTIME* lpDate,
_In_opt_ LPCWSTR lpFormat,
_Out_writes_opt_(cchDate) LPWSTR lpDateStr,
_In_opt_ LPCWSTR lpCalendar
);
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
#define GetDurationFormatEx_DEFINED
int
(
_In_opt_ LPCWSTR lpLocaleName,
_In_opt_ CONST SYSTEMTIME* lpDuration,
_In_ ULONGLONG ullDuration,
_In_opt_ LPCWSTR lpFormat,
_Out_writes_opt_(cchDuration) LPWSTR lpDurationStr,
);
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif // DATETIMEAPI