This topic has not yet been rated - Rate this topic

CertDuplicateCertificateChain function

Applies to: desktop apps only

The CertDuplicateCertificateChain function duplicates a pointer to a certificate chain by incrementing the chain's reference count.

Syntax

PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain(
  __in  PCCERT_CHAIN_CONTEXT pChainContext
);

Parameters

pChainContext [in]

A pointer to a CERT_CHAIN_CONTEXT chain context to be duplicated.

Return value

If the function succeeds, a pointer is returned to the chain context. This pointer has the same value as the pChainContext passed into the function. When you have finished using the chain context, release the chain context by calling the CertFreeCertificateChain function.

If the function fails, NULL is returned.

Examples

For an example that uses this function, see Example C Program: Creating a Certificate Chain.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

CertGetCertificateChain
Certificate Chain Verification Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ