ICertContext::CertContext property

[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, and Windows XP.]

The CertContext property sets or retrieves the PCCERT_CONTEXT of a certificate.

This property is read/write.

Syntax

CertContext.CertContext As Long

Property value

The PCCERT_CONTEXT of the certificate.

Error codes

If the property access methods put_CertContext and get_CertContext succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Remarks

You must call either the FreeContext method or the CertFreeCertificateContext function to free the context.

If you set the CertContext property, the state of the entire Certificate object is reset.

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

ICertContext