private Win32Native.SystemTime ToSystemTime(DateTime dateTime) { long num = dateTime.ToFileTime(); Win32Native.SystemTime systemTime = new Win32Native.SystemTime(); if (!Win32Native.FileTimeToSystemTime(ref num, systemTime)) { Win32ErrorHelper.ThrowExceptionIfGetLastErrorIsNotZero(); } return(systemTime); }
public static extern bool FileTimeToSystemTime([In] ref long fileTime, [Out] Win32Native.SystemTime systemTime);
internal static extern IntPtr CertCreateSelfSignCertificate(IntPtr providerHandle, [In] Win32Native.CryptoApiBlob subjectIssuerBlob, int flags, [In] Win32Native.CryptKeyProviderInformation keyProviderInfo, IntPtr signatureAlgorithm, [In] Win32Native.SystemTime startTime, [In] Win32Native.SystemTime endTime, IntPtr extensions);