Page 1 of 1

Certificate Dialog info

Posted: Wed Apr 26, 2023 12:35 pm
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)^);

Re: Certificate Dialog info

Posted: Thu Apr 27, 2023 9:44 am
by salvadordf
Try CryptUIDlgViewCertificateW available in CRYPTUI.DLL
https://learn.microsoft.com/en-us/windows/win32/api/cryptuiapi/nf-cryptuiapi-cryptuidlgviewcertificatew