When X509_ANY_STRING is used for the lpszStructType with CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject, or CryptDecodeObjectEx the following details apply.
N/A
pvStructInfo points to CERT_NAME_VALUE. See it for additional details.