marbed
15th March 2006 11:24 UTC
Hello,
I have trouble with install certificate via NSIS. Maybe you can help me. I think about using System::Call to calling some method from system dlls. But what method and from what dll? I'm not shure baybe one of those: certmgr.dll, crypt32.dll, cryptui.dll, certcli.dll.
Thanks for all answers
marbed
17th March 2006 08:14 UTC
Hello, this is function in crypt32.dll:
PCCERT_CONTEXT WINAPI CertFindCertificateInStore(
HCERTSTORE hCertStore,
DWORD dwCertEncodingType,
DWORD dwFindFlags,
DWORD dwFindType,
const void* pvFindPara,
PCCERT_CONTEXT pPrevCertContext
);
How to call this fonction in System.Call?
Full CertFindCertificateInStore definition:
http://msdn.microsoft.com/library/de..._functions.asp
Thanks
kichik
17th March 2006 09:09 UTC
The System plug-in readme explains throughly how to call API functions. Figuring out the parameters to pass is up to you.