CertVerifyAuthenticodeLicense

Verifies the Authenticode signature of a signed file.

HRESULT CertVerifyAuthenticodeLicense (
   CRYPT_DATA_BLOB *pLicenseBlob
   DWORD dwFlags
   AXL_SIGNER_INFO *pSignerInfo
   AXL_TIMESTAMPER_INFO *pTimestamperInfo
);

Parameters

Parameter Description

pLicenseBlob

[In] A pointer to a CRYPT_DATA_BLOB structure containing the license.

dwFlags

[In] One or more of the enumeration values.

pSignerInfo

[In, Out] A pointer to an AXL_SIGNER_INFO structure.

pTimestamperInfo

[In, Out] A pointer to an AXL_TIMESTAMPER_INFO structure.

Requirements

Library: mscorwks.dll

Return Value

Returns S_OK on success, and a COM error code on failure.

Remarks

Information on the CRYPT_DATA_BLOB structure is available in the Windows Platform SDK documentation.

The following table shows the values of the dwFlags enumeration.

dwFlags Value

AXL_REVOCATION_NO_CHECK

0x00000001

AXL_REVOCATION_CHECK_END_CERT_ONLY

0x00000002

AXL_REVOCATION_CHECK_ENTIRE_CHAIN

0x00000004

AXL_URL_CACHE_ONLY_RETRIEVAL

0x00000008

AXL_LIFETIME_SIGNING

0x00000010

AXL_TRUST_MICROSOFT_ROOT_ONLY

0x00000020