Author: Pmillio | Posted on: 9/7/2009 11:52:29 AM | Views : 295

/// <summary> /// A container for P/Invoke declarations. /// </summary> private struct NativeMethods { private const string KERNEL32 = "kernel32.dll"; [DllImport(KERNEL32)] public static extern uint GetTimeZoneInformation(out TIME_ZONE_INFORMATION lpTimeZoneInformation); [DllImport(KERNEL32)] public static extern bool SystemTimeToTzSpecificLocalTime( [In] ref TIME_ZONE_INFORMATION lpTimeZone, [In] ref SYSTEMTIME lpUniversalTime, out SYSTEMTIME lpLocalTime); [DllImport(KERNEL32)] public static extern bool SystemTimeToFileTime( [In] ref SYSTEMTIME lpSystemTime, out FILETIME lpFileTime); [DllImport(KERNEL32)] public static extern bool FileTimeToSystemTime( ...

Go to the complete details ...