/// <summary> /// Displays a X.509 Certificate Trust List UI dialog. /// </summary> /// <param name="ctl">An object to display.</param> public static void DisplayCTL(X509CTL ctl) { if (IntPtr.Zero.Equals(ctl.Handle)) { return; } CryptUI.CryptUIDlgViewContext(3, ctl.Handle, IntPtr.Zero, "Certificate Trust List", 0, 0); }
/// <summary> /// Displays a X.509 Certificate Revocation List UI dialog. /// </summary> /// <param name="crl">An object to display.</param> public static void DisplayCRL(X509CRL2 crl) { if (IntPtr.Zero.Equals(crl.Handle)) { return; } CryptUI.CryptUIDlgViewContext(2, crl.Handle, IntPtr.Zero, "Certificate Revocation List", 0, 0); }
/// <summary> /// Displays a X.509 Certificate Revocation List UI dialog. /// </summary> public void ShowUI() { Boolean mustRelease = false; if (Handle.IsInvalid || Handle.IsClosed) { mustRelease = true; GetSafeContext(); } CryptUI.CryptUIDlgViewContext(2, Handle.DangerousGetHandle(), IntPtr.Zero, "Certificate Revocation List", 0, 0); if (mustRelease) { Dispose(); } }
/// <summary> /// Displays a X.509 Certificate Trust List UI dialog. /// </summary> public void ShowUI() { Boolean mustRelease = false; if (ctx == null || ctx.IsInvalid || ctx.IsClosed) { mustRelease = true; GetSafeContext(); } CryptUI.CryptUIDlgViewContext(3, ctx.DangerousGetHandle(), IntPtr.Zero, "Certificate Trust List", 0, 0); if (mustRelease) { Dispose(); } }
private void ExamineCryptObject() { CryptUI.CryptUIViewContext(Path, "Crypto Tools", IntPtr.Zero); }