[DllImport("kernel32.dll", EntryPoint = "SystemTimeToFileTime", SetLastError = true)]
public static extern bool SystemTimeToFileTime(ref SYSTEMTIME lpSystemTime, ref FILETIME lpFileTime);
Declare Function SystemTimeToFileTime Lib "Coredll.dll" (TODO) As TODO
SystemTime and 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;
}