CertSetCertificateContextPropertiesFromCTLEntry function (wincrypt.h)

The CertSetCertificateContextPropertiesFromCTLEntry function sets the properties on the certificate context by using the attributes in the specified certificate trust list (CTL) entry.

Syntax

BOOL CertSetCertificateContextPropertiesFromCTLEntry(
  [in] PCCERT_CONTEXT pCertContext,
  [in] PCTL_ENTRY     pCtlEntry,
  [in] DWORD          dwFlags
);

Parameters

[in] pCertContext

A pointer to the CERT_CONTEXT whose attributes are to be set.

[in] pCtlEntry

A pointer to the CTL_ENTRY structure used to set the attributes on the certificate.

[in] dwFlags

A DWORD. This parameter can be set to CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG to ignore any persisted error flags.

Return value

If the function succeeds, the function returns nonzero.

If the function fails, it returns zero. For extended error information, call GetLastError.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See also

CERT_CONTEXT

CTL_ENTRY

GetLastError