[DllImport("coredll.dll", CallingConvention = CallingConvention.Winapi, SetLastError = true, CharSet = CharSet.Auto
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SystemTimeToFileTime([In] ref SYSTEMTIME lpSystemTime, [Out]out FILETIME lpFileTime);
Declare Function SystemTimeToFileTime Lib "Coredll.dll" (TODO) As TODO
Structure.SystemTime and Structure.FileTime
Do you know one? Please contribute it!
None.
Please add some!
//Taken from http://www.codeproject.com/csharp/timezoneconversions.asp?print=true
private static DateTime SystemTimeToDateTime(ref SYSTEMTIME st)
{
FILETIME ft = new FILETIME();
SystemTimeToFileTime(ref st, out ft);
DateTime dt = new DateTime((((long)ft.dwHighDateTime) << 32) | (uint)ft.dwLowDateTime);
return dt;
}