When X509_ENUMERATED is used for the lpszStructType with CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject, or CryptDecodeObjectEx the following details apply.
N/A
pvStructInfo points to an integer containing the enumerated value.
Used when encoding any arbitrary enumeration. One example of usage is with the X509_CRL_REASON_CODE.