WinVerifyTrust function. The WinVerifyTrust function performs a trust verification action on a specified object. The function passes the inquiry to a trust provider that supports the action identifier, if one exists. For certificate verification, use the CertGetCertificateChain and CertVerifyCertificateChainPolicy functions.