PFN_CERT_STORE_PROV_WRITE_CERT callback function (wincrypt.h)
An application-defined callback function that is called by CertAddEncodedCertificateToStore, CertAddCertificateContextToStore and CertAddSerializedElementToStore before adding to the store. In addition to the encoded certificate, the added pCertContext might also have properties.
Syntax
PFN_CERT_STORE_PROV_WRITE_CERT PfnCertStoreProvWriteCert;
BOOL PfnCertStoreProvWriteCert(
[in] HCERTSTOREPROV hStoreProv,
[in] PCCERT_CONTEXT pCertContext,
[in] DWORD dwFlags
)
{...}
Parameters
[in] hStoreProv
Provider specific value returned in CERT_STORE_PROV_INFO by CertDllOpenStoreProv.
[in] pCertContext
See CertAddCertificateContextToStore.
[in] dwFlags
CERT_STORE_PROV_WRITE_ADD_FLAG is set when this function is called by the following functions that add a certificate to the store:
CertAddEncodedCertificateToStore
CertAddCertificateContextToStore
CertAddSerializedElementToStore
Return value
Returns TRUE if it is okay to update the store.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | wincrypt.h |
See also
CertAddCertificateContextToStore
CertAddEncodedCertificateToStore