CertFindCertificateInStore (crypt32)
Last changed: 65.54.188.148

.
Summary
Finds the first or next certificate context in a certificate store that matches a search criteria established by the dwFindType and its associated pvFindPara.

C# Signature:

[DllImport("crypt32.dll", SetLastError=true)]
static extern IntPtr CertFindCertificateInStore(IntPtr hCertStore,
   uint dwCertEncodingType, uint dwFindFlags, uint dwFindType,
   IntPtr pszFindPara, IntPtr pPrevCertCntxt);

VB .NET Signature:

Declare Function CertFindCertificateInStore Lib "crypt32.dll" (
   hCertStore As IntPtr, dwCertEncodingType As Integer, dwFindFlags As Integer, _
   dwFindType As Integer, pszFindPara As IntPtr, pPrevCertContext As IntPtr) As IntPtr

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

You can define overloads with pszFindPara defined as different types (such as string) to more easily handle different scenarios.

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation