The Enumeration functions list the certificates in a store. To enumerate certificates, use CertEnumCertificatesInStore in a loop to process all the certificates in a store.
Because the name of the issuer of a CRL is usually known, a single function accommodates both finding a specific CRL by issuer name or enumerating the CRLs in a certificate store, CertGetCRLFromStore . Used in a loop, this function enumerates all of the CRLs in a store.