Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static extern bool FileTimeToSystemTime([In] ref long fileTime, [Out] Win32Native.SystemTime systemTime);
Exemplo n.º 3
0
 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);