Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function frees a certificate context by decrementing its reference count. When the reference count goes to zero, this function frees the memory occupied by a certificate context. Each context obtained by a get, find, enumerate, duplicate, or create operation must be freed by the appropriate free operation.

Syntax

BOOL WINAPI CertFreeCertificateContext(
  PCCERT_CONTEXT 
pCertContext
);

Parameters

pCertContext

[in] Pointer to the CERT_CONTEXTstructure to be freed.

Return Value

The function always returns TRUE.

Requirements

Header wincrypt.h
Library crypt32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

CERT_CONTEXT