ISCrdEnr::getCACount method

The getCACount method returns the number of certification authorities (CAs) willing to issue a certificate based on the specified certificate template.

Syntax

HRESULT getCACount(
  [in]  BSTR     bstrCertTemplateName,
  [out] LONG *pdwCACount
);

SCrdEnr.getCACount( _
  ByVal bstrCertTemplateName, _
  ByRef pdwCACount _
)

Parameters

bstrCertTemplateName [in]

A string that represents the name of the certificate template.

pdwCACount [out]

A pointer to a LONG that returns the number of available CAs that will issue a certificate for the certificate template specified in bstrCertTemplateName.

Return value

C++

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

A Long value that represents the number of available CAs that will issue a certificate for the certificate template specified in bstrCertTemplateName.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2003 [desktop apps only]
DLL
Scrdenrl.dll
IID
IID_ISCrdEnr is defined as 753988a1-1357-436d-9cf5-f089bdd67d64

See also

ISCrdEnr

ISCrdEnr::enumCAName

ISCrdEnr::getCAName