CertStoreProvReadCertCallback

An application-defined callback function that reads the provider's copy of the certificate context. If one exists, a new certificate context is created. Currently not called directly by the certificate store functions. However, it may be exported to support other providers.

BOOL WINAPI CertStoreProvReadCertCallback(
  IN HCERTSTOREPROV hStoreProv,         
  IN PCCERT_CONTEXT pStoreCertContext,  
  IN DWORD dwFlags,                     
  OUT PCCERT_CONTEXT *ppProvCertContext  
);
 

Parameters

hStoreProv
The provider-specific value returned in CERT_STORE_PROV_INFO by CertDllOpenStoreProv.
pStoreCertContext
The context of the certificate to be read.
dwFlags
This parameter is reserved for future use and is set to zero.
ppProvCertContext
A pointer to a pointer to provider's copy of the certificate context. The context will be freed by calling CertFreeCertificateContext.

Return Values

Returns TRUE if the certificate was successfully read.