如何使用CertFindCertificateInStore在Store中提取两个或两个以上符合搜索条件的证书?
如何使用CertFindCertificateInStore在Store中提取两个或两个以上符合搜索条件的证书?
我从MSDN上知道:CertFindCertificateInStore can find the first, or next, certificate context in the certificate store that meets a search criterion.
但我不知道该如何实现,我觉的应该是和pPrevCertContext有关。
从资料上看:pPrevCertContext
[in] Pointer to the last CERT_CONTEXT structure returned by this function. This parameter must be NULL on the first call of the function. A pPrevCertContext parameter that is not NULL is always freed by this function, even if the function causes an error.
如果能,也只能找出第一个和最后一个!
还望哪位大哥告知应如何实现。
真迷茫……