Share via


CertFreeCertificateContext (Compact 2013)

3/28/2014

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_CONTEXT structure to be freed.

Return Value

The function always returns TRUE.

Requirements

Header

wincrypt.h

Library

crypt32.lib

See Also

Reference

Certificates Functions
CERT_CONTEXT