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

CertVerifyRevocation (crypt32)
 
.
Summary
TODO - a short description

C# Signature:

[DllImport("Crypt32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool CertVerifyRevocation([In] uint dwEncodingType, [In] uint dwRevType,
                                [In] uint cContext, [In] IntPtr[] rgpvContext,
                      [In] uint dwFlags, [In, Optional] ref CERT_REVOCATION_PARA pRevPara,
                            [In, Out] ref CERT_REVOCATION_STATUS pRevStatus);
[DllImport("crypt32.dll", SetLastError=true)]
static extern TODO CertVerifyRevocation(TODO);

VB Signature:

Declare Function CertVerifyRevocation Lib "crypt32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

        CERT_REVOCATION_STATUS revStatus = new CERT_REVOCATION_STATUS();
        revStatus.cbSize = Marshal.SizeOf(revStatus);

Please add some!

        CERT_REVOCATION_PARA revPara = new CERT_REVOCATION_PARA();
        revPara.cbSize = Marshal.SizeOf(revPara);
        revPara.pftTimeToUse = Marshal.AllocHGlobal(sizeof(long));
        Marshal.StructureToPtr(DateTime.Now.ToFileTimeUtc(), revPara.pftTimeToUse, false);

        IntPtr[] rgpvContext = new IntPtr[1];
        rgpvContext[0] = RevArgs.TargetCert.Handle;
        revPara.pIssuerCert = issuerCert.Handle;
        bool bSuccess = CertVerifyRevocation(X509_ASN_ENCODING,
                         CERT_CONTEXT_REVOCATION_TYPE, 1, rgpvContext,
                         0, ref revPara, ref revStatus);

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
Edit This Page
Find References
Show Printable Version
Revisions