Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Certificate Dialog info

Post Reply
jameshdf
Posts: 3
Joined: Sun Nov 11, 2018 4:59 pm

Certificate Dialog info

Post by jameshdf »

How to get certificate information dialog?

When using the native webbrowser control, I made a call using the code below:

var
pct: IOleCommandTarget;
begin
NativeWebBrowser.ControlInterface.QueryInterface(IOleCommandTarget, pct);
if pct <> nil then
pct.Exec(@CGID_ShellDocView, 33, 0, POleVariant(nil)^, POleVariant(nil)^);
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Certificate Dialog info

Post by salvadordf »

Try CryptUIDlgViewCertificateW available in CRYPTUI.DLL
https://learn.microsoft.com/en-us/windows/win32/api/cryptuiapi/nf-cryptuiapi-cryptuidlgviewcertificatew
Post Reply