CertDllOpenStoreProv

An OID registerable or installable store-provider function that is called by CertOpenStore. It defines the store provider open function.

BOOL WINAPI CertDllOpenStoreProv(
  IN LPCSTR lpszStoreProvider,                 
  IN DWORD dwMsgAndCertEncodingType,           
  IN HCRYPTPROV hCryptProv,                    
  IN DWORD dwFlags,                            
  IN const void *pvPara,                       
  IN HCERTSTORE hCertStore,                    
  IN OUT PCERT_STORE_PROV_INFO pStoreProvInfo  
);
 

Note that the first five parameters are those that were passed as parameters to CertOpenStore.

Parameters

lpszStoreProvider
See CertOpenStore.
dwMsgAndCertEncodingType
See CertOpenStore.
hCryptProv
See CertOpenStore.
dwFlags
See CertOpenStore.
pvPara
See CertOpenStore.
hCertStore
The hCertStore parameter is the handle of the store in memory that has been opened, and can be used to make calls to other store-related API calls, such as CertAddSerializedElementToStore.
pStoreProvInfo
The pointer to the CERT_STORE_PROV_INFO to be updated. The data structure has been zeroed, and cbSize set before the call.

pStoreProvInfo->cStoreProvFunc is the count of callback functions that are implemented, and should be set last. Once set, all subsequent store calls, such as CertAddEncodedCertificateToStore will call the appropriate provider callback function.

Return Values

Returns TRUE if successful, FALSE if it was unable to open the store.