using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;
namespace Vanara.PInvoke
{
public static partial class Kernel32
{
/// Convert a value to a value.
/// The value.
/// The converted value.
public static FILETIME ToFILETIME(this SYSTEMTIME st)
{
SystemTimeToFileTime(st, out var ft);
return ft;
}
/// Convert a value to a value.
/// The value.
/// The converted value.
public static SYSTEMTIME ToSYSTEMTIME(this FILETIME ft)
{
FileTimeToSystemTime(ft, out var st);
return st;
}
}
}