Rediger

Del via


ISCrdEnr::setCAName method

The setCAName method specifies the name of the certification authority (CA).

Syntax

HRESULT setCAName(
  [in] DWORD dwFlags,
  [in] BSTR bstrCertTemplateName,
  [in] BSTR bstrCAName
);

SCrdEnr.setCAName( _
  ByVal dwFlags, _
  ByVal bstrCertTemplateName, _
  ByVal bstrCAName _
)

Parameters

dwFlags [in]

Value that specifies whether the name refers to the CA name or the CA's machine name. If this value is SCARD_ENROLL_CA_MACHINE_NAME (defined as 0x01), the name refers to the CA's machine name. Otherwise, the name refers to the CA name.

bstrCertTemplateName [in]

Name of the certificate template.

bstrCAName [in]

CA name to be used with the certificate template specified by bstrCertTemplateName.

Return value

VB

The return value is an HRESULT. A value of S_OK indicates that the call was successful.

Remarks

Use this method to specify a CA for a certificate template.

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