For the szOID_NETSCAPE_CERT_SEQUENCE extension, CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject, or CryptDecodeObjectEx can be called with lpszStructType set to PKCS_CONTENT_INFO_SEQUENCE_OF_ANY.
A sequence of certificates is contained in the CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY structure.
The following details apply:
"2.16.840.1.113730.2.5"
pvStructInfo points to a CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY structure. See it for additional details.
For X509_ASN_ENCODING, encoded as a PKCS#7 ContentInfo structure wrapping a sequence of ANY. The value of the contentType field is pszObjId, while the content field is the following structure:
SequenceOfAny ::= SEQUENCE OF ANY
The CRYPT_DER_BLOBs in CRYPT_CONTENT_INFO_SEQUENCE_OF_ANY rgValue point to encoded X509 certificates.