When X509_BASIC_CONSTRAINTS or szOID_BASIC_CONSTRAINTS are used for the lpszStructType with CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject, or CryptDecodeObjectEx the following details apply.
"2.5.29.10"
pvStructInfo points to a CERT_BASIC_CONSTRAINTS_INFO structure. See it for additional details.
The X509_BASIC_CONSTRAINTS has been superseded by X509_BASIC_CONSTRAINTS2. New certificate servers are implementing the latter.