Expand Minimize

CertStoreProvWriteCertCallback callback function

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


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

typedef void (*PFN_CERT_STORE_PROV_WRITE_CERT)();

Parameters

hStoreProv [in]

Provider specific value returned in CERT_STORE_PROV_INFO by CertDllOpenStoreProv.

pCertContext [in]

See CertAddCertificateContextToStore.

dwFlags [in]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

See also

Callback Functions
CERT_STORE_PROV_INFO
CertAddCertificateContextToStore
CertAddEncodedCertificateToStore
CertAddSerializedElementToStore
CertDllOpenStoreProv

 

 

Community Additions

ADD
Show:
© 2014 Microsoft