From 7f642e51670bc38a4ef782a363936850bc2b0ba9 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 22 Apr 2021 06:38:23 -0700 Subject: Move dutil into libs/dutil --- src/libs/dutil/WixToolset.DUtil/inc/timeutil.h | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/libs/dutil/WixToolset.DUtil/inc/timeutil.h (limited to 'src/libs/dutil/WixToolset.DUtil/inc/timeutil.h') diff --git a/src/libs/dutil/WixToolset.DUtil/inc/timeutil.h b/src/libs/dutil/WixToolset.DUtil/inc/timeutil.h new file mode 100644 index 00000000..3655c00a --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/timeutil.h @@ -0,0 +1,38 @@ +#pragma once +// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. + + +#ifdef __cplusplus +extern "C" { +#endif + +HRESULT DAPI TimeFromString( + __in_z LPCWSTR wzTime, + __out FILETIME* pFileTime + ); +HRESULT DAPI TimeFromString3339( + __in_z LPCWSTR wzTime, + __out FILETIME* pFileTime + ); +HRESULT DAPI TimeCurrentTime( + __deref_out_z LPWSTR* ppwz, + __in BOOL fGMT + ); +HRESULT DAPI TimeCurrentDateTime( + __deref_out_z LPWSTR* ppwz, + __in BOOL fGMT + ); +HRESULT DAPI TimeSystemDateTime( + __deref_out_z LPWSTR* ppwz, + __in const SYSTEMTIME *pst, + __in BOOL fGMT + ); +HRESULT DAPI TimeSystemToDateTimeString( + __deref_out_z LPWSTR* ppwz, + __in const SYSTEMTIME *pst, + __in LCID locale + ); + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3-55-g6feb