Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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 WINAPI WTHelperCertIsSelfSigned(
  _In_  DWORD dwEncoding,
  _In_  CERT_INFO *pCert
);

Parameters

dwEncoding [in]

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 [in]

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]

Header

Wintrust.h

Library

Wintrust.lib

DLL

Wintrust.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.