コード例 #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);
        }
コード例 #2
0
 public static extern bool FileTimeToSystemTime([In] ref long fileTime, [Out] Win32Native.SystemTime systemTime);
コード例 #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);