CertFreeCTLContext

The CertFreeCTLContext function frees a CTL context by decrementing its reference count. When the reference count goes to zero, CertFreeCTLContext frees the memory occupied by a CTL context. Each context obtained by a get, find, enum, duplicate, or create must have a corresponding free.

#include <wincrypt.h>
BOOL WINAPI CertFreeCTLContext(
  PCCTL_CONTEXT pCtlContext           // in
);
 

Parameters

pCtlContext
Pointer to the CTL_CONTEXT that is to be freed.

Return Values

Always returns TRUE.

Example

See Example Code for Fundamental Certificate Store Operations.

QuickInfo

  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.

See Also

CertFreeCRLContext