Partager via


CertVerifyTimeValidity (Windows CE 5.0)

Send Feedback

This function verifies the time validity of a certificate.

LONG WINAPI CertVerifyTimeValidity(LPFILETIMEpTimeToVerify,PCERT_INFOpCertInfo);

Parameters

  • pTimeToVerify
    [in] Pointer to a FILETIME structure containing the comparison time. If NULL, the current time is used.
  • pCertInfo
    [in] Pointer to the CERT_INFO structure of the certificate for which the time is being verified.

Return Values

Returns -1 if the comparison time is before the NotBefore member value of the CERT_INFO structure. Returns +1 if the comparison time is after the NotAfter member value. Returns zero for the valid time for the certificate.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Wincrypt.h.
Link Library: Crypt32.lib.

See Also

CertVerifyValidityNesting | CERT_INFO | FILETIME

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.