public static DateTime GetDateTime(IntPtr pFiletime) { if (pFiletime == IntPtr.Zero) { return DateTime.MinValue; } return GetDateTime((System.Runtime.InteropServices.ComTypes.FILETIME)Marshal.PtrToStructure(pFiletime, typeof(System.Runtime.InteropServices.ComTypes.FILETIME))); }