}
-CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CERT_CONTEXT CertificateContext, HWND WindowHandle){
+CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(PCCERT_CONTEXT CertificateContext, HWND WindowHandle){
- HCERTSTORE CertificateStore = CertificateContext.hCertStore;
+ HCERTSTORE CertificateStore = CertificateContext->hCertStore;
CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = { 0 };
CertificateData.hwndParent = WindowHandle;
CertificateData.dwFlags = CRYPTUI_DISABLE_HTMLLINK;
- CertificateData.pCertContext = &CertificateContext;
+ CertificateData.pCertContext = CertificateContext;
CertificateData.cStores = 1;
CertificateData.rghStores = &CertificateStore;
CertificateData.szTitle = _("Certificate Information");
#include "../carddav/carddav.h"
CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CardDAV *CardDAVConnection, HWND WindowHandle);
-CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CERT_CONTEXT CertificateContext, HWND WindowHandle);
+CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(PCCERT_CONTEXT CertificateContext, HWND WindowHandle);
#endif
\ No newline at end of file