Platform SDK: Smart Card Enrollment Control

ISCrdEnr::getCertTemplateName

The getCertTemplateName method retrieves the name of the certificate template.

objSCEnroll.getCertTemplateName( _
            dwFlags As Long ) As String

Parameters

objSCEnroll
Object expression that resolves to a SCrdEnr object.
dwFlags
Value which determines if the certificate template's real name or display name is returned. If dwFlags has the value SCARD_ENROLL_CERT_TEMPLATE_DISPLAY_NAME, the certificate template's display name is retrieved; otherwise, the real name of the certificate template is displayed.

Return Values

String representing the name of the certificate template which will be used in the certificate request.

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.

Example Code in VBScript

Dim strCTName

' Retrieve the cert template name.
strCTName = Senroll.getCertTemplateName(0)
 

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Library: Included as a resource in Scrdenrl.dll.

See Also

ISCrdEnr::setCertTemplateName