WTHelperCertIsSelfSigned function

[The WTHelperCertIsSelfSigned function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. For certificate verification, use the CertGetCertificateChain and CertVerifyCertificateChainPolicy functions. For Microsoft Authenticode technology signature verification, use the .NET Framework.]

The WTHelperCertIsSelfSigned function checks whether a certificate is self-signed. This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Wintrust.dll.

Syntax

BOOL WTHelperCertIsSelfSigned(
  DWORD     dwEncoding,
  CERT_INFO *pCert
);

Parameters

dwEncoding

A DWORD value that specifies the encoding types of the certificate to check. For information about possible encoding types, see Certificate and Message Encoding Types.

pCert

A pointer to a CERT_INFO structure that contains information about the certificate to check.

Return Value

If the function succeeds, the function returns TRUE.

If the function fails, it returns FALSE.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wintrust.h
Library Wintrust.lib
DLL Wintrust.dll