I'm having problem with this code
Checking digital signature programmatically from Delphi
CertCount is always = 0
if (not ImageEnumerateCertificates(hExe, CERT_SECTION_TYPE_ANY, CertCount, nil, 0)) or (CertCount <> 1) then exit
I tried with "C:\Program Files (x86)\Windows Sidebar\sidebar.exe" and "C:\Windows\SysWOW64\calc.exe"