Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The setCertTemplateName method specifies the name of the certificate template.
Syntax
HRESULT setCertTemplateName(
[in] DWORD dwFlags,
[in] BSTR bstrCertTemplateName
);
SCrdEnr.setCertTemplateName( _
ByVal dwFlags, _
ByVal bstrCertTemplateName _
)
Parameters
-
dwFlags [in]
-
Value which determines if the certificate template's real name or display name is being set. If dwFlags has the value SCARD_ENROLL_CERT_TEMPLATE_DISPLAY_NAME, the certificate template's display name is set. Otherwise, the real name of the certificate template is set.
-
bstrCertTemplateName [in]
-
Name of the certificate template which will be used in the certificate request.
Return value
VB
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.
Remarks
If you do not set the certificate template name by calling ISCrdEnr::setCertTemplateName, the name defaults to the first name in the list of available certificate templates.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
DLL |
|
IID |
IID_ISCrdEnr is defined as 753988a1-1357-436d-9cf5-f089bdd67d64 |
See also