WTHelperGetProvPrivateDataFromChain function (wintrust.h)

[The WTHelperGetProvPrivateDataFromChain 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 WTHelperGetProvPrivateDataFromChain function receives a CRYPT_PROVIDER_PRIVDATA structure from the chain by using the provider ID. This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Wintrust.dll.


CRYPT_PROVIDER_PRIVDATA * WTHelperGetProvPrivateDataFromChain(
  [in] CRYPT_PROVIDER_DATA *pProvData,
       GUID                *pgProviderID


[in] pProvData

A pointer to a CRYPT_PROVIDER_DATA structure that contains the provider's private information.


A pointer to a GUID structure that identifies the provider.

Return value

If the function succeeds, the function returns a pointer to a CRYPT_PROVIDER_PRIVDATA structure that represents the trust provider's private information.

If the function fails, the return value is NULL.


Requirement Value
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