IChainContext::ChainContext 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 ChainContext property sets or retrieves the PCCERT_CHAIN_CONTEXT of a certificate.

This property is read/write.

Syntax

' Data type: Long

ChainContext.ChainContext As Long

Property value

The PCCERT_CHAIN_CONTEXT of the certificate.

Error codes

If the property access methods put_ChainContext and get_ChainContext succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Remarks

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

If you set the ChainContext property, the state of the entire Chain object is reset.

Requirements

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

See also

IChainContext