Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

CertFindCertificateInStore (crypt32)
 
.
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

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions