The WIN_CERTIFICATE structure contains the type and data for a WinTrust certificate. You can use this generic data structure to store certificates for a variety of WinTrust verification operations. A certificate typically contains encrypted information that can be used to identify and verify the authenticity of a subject, such as a software publisher or an executable file.
typedef struct _WIN_CERTIFICATE { DWORD dwLength; WORD wRevision; WORD wCertificateType; BYTE bCertificate[ANYSIZE_ARRAY]; } WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
Value |
Meaning |
WIN_CERT_TYPE_X509 |
The certificate contains an X.509 Certificate. |
WIN_CERT_TYPE_PKCS_SIGNED_DATA |
The certificate contains a PKCS SignedData structure. |
WIN_CERT_TYPE_RESERVED_1 |
Reserved. |
WinSubmitCertificate, WinTrustProviderSubmitCertificate, WinTrustSubjectCheckContentInfo, WinTrustSubjectGetCertHeader, WinTrustSubjectGetCertificate, WinTrustSubjectGetName