Function

CertCloseStore

Directives

External
Name
Stdcall

Module

wcrypt2

Last Modified

7/15/2014 3:26:44 PM

Comments

+-------------------------------------------------------------------------
  Close a cert store handle.
  There needs to be a corresponding close for each open and duplicate.
  Even on the final close, the cert store isn't freed until all of its
  certificate and CRL contexts have also been freed.
  On the final close, the hCryptProv passed to CertStoreOpen is
  CryptReleaseContext'ed.
  To force the closure of the store with all of its memory freed, set the
  CERT_STORE_CLOSE_FORCE_FLAG. This flag should be set when the caller does
  its own reference counting and wants everything to vanish.
  To check if all the store's certificates and CRLs have been freed and that
  this is the last CertCloseStore, set the CERT_CLOSE_STORE_CHECK_FLAG. If
  set and certs, CRLs or stores still need to be freed/closed, FALSE is
  returned with LastError set to CRYPT_E_PENDING_CLOSE. Note, for FALSE,
  the store is still closed. This is a diagnostic flag.
  LastError is preserved unless CERT_CLOSE_STORE_CHECK_FLAG is set and FALSE
  is returned.
--------------------------------------------------------------------------

Scope

Interfaced

Declaration

function CertCloseStore(hCertStore :HCERTSTORE; dwFlags :DWORD):BOOL ; stdcall;

Called-By Hierarchy


                     CertCloseStore
            tCryptography.Destroy┤ 
            tCryptography.Release┘ 
         tCryptography.SignData┤   
     tCryptography.Certsigndata┤   
       tCryptography.SignData┘ │   
         tCryptography.CheckSig┘   
tCryptography.Certsigndata...┘     

Called-By

Name Declaration Comments
tCryptography.Destroy destructor Destroy; override; -
tCryptography.Release procedure Release; -


Source