CertCreateCTLContext (crypt32)
Last changed: -24.16.153.89

.
Summary
The CertCreateCTLContext function creates a certificate trust list (CTL) context from an encoded CTL. The created context is not persisted to a certificate store. The function makes a copy of the encoded CTL within the created context.

C# Signature:

    [DllImport("crypt32.dll", SetLastError = true)]
    public static extern IntPtr CertCreateCTLContext(uint dwMsgAndCertEncodingType, IntPtr pbCtlEncoded, uint cbCtlEncoded);

VB Signature:

Related Constants

These are for dwMsgAndCertEncodingType

    public const int X509_ASN_ENCODING = 0x00000001;
    public const int PKCS_7_ASN_ENCODING = 0x00010000;

User-Defined Types:

None.

Alternative Managed API:

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation