PFN_CERT_STORE_PROV_WRITE_CERT funzione di callback (wincrypt.h)

Funzione di callback definita dall'applicazione chiamata da CertAddEncodedCertificateToStore, CertAddCertificateContextToStore e CertAddSerializedElementToStore prima di aggiungere all'archivio. Oltre al certificato codificato, la proprietà pCertContext aggiunta potrebbe avere anche proprietà.

Sintassi

PFN_CERT_STORE_PROV_WRITE_CERT PfnCertStoreProvWriteCert;

BOOL PfnCertStoreProvWriteCert(
  [in] HCERTSTOREPROV hStoreProv,
  [in] PCCERT_CONTEXT pCertContext,
  [in] DWORD dwFlags
)
{...}

Parametri

[in] hStoreProv

Valore specifico del provider restituito in CERT_STORE_PROV_INFO da CertDllOpenStoreProv.

[in] pCertContext

Vedere CertAddCertificateContextToStore.

[in] dwFlags

CERT_STORE_PROV_WRITE_ADD_FLAG viene impostato quando questa funzione viene chiamata dalle funzioni seguenti che aggiungono un certificato all'archivio:

CertAddEncodedCertificateToStore

CertAddCertificateContextToStore

CertAddSerializedElementToStore

Valore restituito

Restituisce TRUE se è corretto aggiornare l'archivio.

Requisiti

   
Client minimo supportato Windows XP [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione wincrypt.h

Vedi anche

CERT_STORE_PROV_INFO

Funzioni di callback

CertAddCertificateContextToStore

CertAddEncodedCertificateToStore

CertAddSerializedElementToStore

CertDllOpenStoreProv