CertStoreProvWriteCertCallback

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.

BOOL WINAPI CertStoreProvWriteCertCallback(
  IN HCERTSTOREPROV hStoreProv,  
  IN PCCERT_CONTEXT pCertContext,  
  IN DWORD dwFlags               
);
 

Parameters

hStoreProv
The provider specific value returned in CERT_STORE_PROV_INFO by CertDllOpenStoreProv.
pCertContext
See CertAddCertificateContextToStore.
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 Values

Returns TRUE if it is okay to update the store.