IX509EnrollmentPolicyServer::GetCAsForTemplate method (certenroll.h)

The GetCAsForTemplate method retrieves a collection of certificate enrollment servers that support a specified template.

Syntax

HRESULT GetCAsForTemplate(
  [in]          IX509CertificateTemplate  *pTemplate,
  [out, retval] ICertificationAuthorities **ppCAs
);

Parameters

[in] pTemplate

Pointer to an IX509CertificateTemplate interface that represents the template.

[out, retval] ppCAs

Address of a variable that receives a pointer to an ICertificationAuthorities interface that represents the server collection.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return code Description
OLE_E_BLANK
The IX509EnrollmentPolicyServer object has not been initialized.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header certenroll.h

See also

IX509EnrollmentPolicyServer