The CertDuplicateCTLContext function duplicates a CTL context by incrementing the reference count. The reference count is used to keep track of the lifetime of the context.
#include <wincrypt.h>
PCCTL_CONTEXT WINAPI CertDuplicateCTLContext(
PCCTL_CONTEXT pCtlContext // in
);
Currently, a copy is not made of the context, and the returned context is the same as the context that was input.
See CertDuplicateCertificateContext. In that example, change all references to "certificate" to "CTL."
Windows NT: Requires version 4.0 SP3 or later. Available also in IE 3.02 and later.
Windows: Requires Windows 95 OSR2 or later.
Windows CE: Unsupported.
Header: Declared in wincrypt.h.
Import Library: Use crypt32.lib.