CertStoreProvGetCertProperty callback function

The CertStoreProvGetCertProperty callback function retrieves a specified property of a certificate.

Syntax

BOOL WINAPI CertStoreProvGetCertProperty(
  _In_    HCERTSTOREPROV hStoreProv,
  _In_    PCCERT_CONTEXT pCertContext,
  _In_    DWORD          dwPropId,
  _In_    DWORD          dwFlags,
  _Out_   void           *pvData,
  _Inout_ DWORD          *pcbData
);

Parameters

hStoreProv [in]

HCERTSTOREPROV handle to a certificate store.

pCertContext [in]

A pointer to a CERT_CONTEXT structure.

dwPropId [in]

Indicates a property identifier.

dwFlags [in]

Any needed flag values.

pvData [out]

A pointer to a buffer to contain the pointer to a CERT_CONTEXT structure to be returned by the function. May be set to NULL on a first call to the function to get the value of pcbData before allocating memory for the buffer.

pcbData [in, out]

A pointer to a DWORD indicating the length of the pvData buffer.

Return value

Returns TRUE if the function succeeds or FALSE if it fails.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]

See also

CERT_CONTEXT