PFN_CERT_STORE_PROV_SET_CERT_PROPERTY callback function (wincrypt.h)

An application-defined callback function that is called by CertSetCertificateContextProperty before setting the certificate's property. It is also called by CertGetCertificateContextProperty when getting a hash property that needs to be created and then persisted through the set.

Upon input, the property has not been set for the pCertContext parameter.

Syntax

PFN_CERT_STORE_PROV_SET_CERT_PROPERTY PfnCertStoreProvSetCertProperty;

BOOL PfnCertStoreProvSetCertProperty(
  [in] HCERTSTOREPROV hStoreProv,
  [in] PCCERT_CONTEXT pCertContext,
  [in] DWORD dwPropId,
  [in] DWORD dwFlags,
  [in] const void *pvData
)
{...}

Parameters

[in] hStoreProv

Provider-specific value returned in CERT_STORE_PROV_INFO by CertDllOpenStoreProv.

[in] pCertContext

See CertSetCertificateContextProperty.

[in] dwPropId

See CertSetCertificateContextProperty.

[in] dwFlags

Copy of the dwFlags passed as a parameter to CertSetCertificateContextProperty.

[in] pvData

See CertSetCertificateContextProperty.

Return value

Returns TRUE if it is okay to set the property.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h

See also

CERT_STORE_PROV_INFO

Callback Functions

CertDllOpenStoreProv

CertGetCertificateContextProperty

CertSetCertificateContextProperty