| Platform SDK: Smart Card Enrollment Control | 
The enumCertTemplateName method enumerates the certificate template names.
objSCEnroll.enumCertTemplateName( _
    dwIndex As Long, _
    dwFlags As Long) As String
String specifying the name of the enumerated certificate template.
' Define the constants.
Const SCARD_ENROLL_USER_CERT_TEMPLATE = 1
Const SCARD_ENROLL_MACHINE_CERT_TEMPLATE = 2
Dim nCount, nIndex, CertTempType
CertTempType = SCARD_ENROLL_USER_CERT_TEMPLATE
' Determine the count of certificate template names.
nCount = Senroll.getCertTemplateCount(CertTempType)
' Display the certificate template names.
For nIndex = 0 to nCount - 1
    MsgBox( Senroll.enumCertTemplateName( nIndex, CertTempType ) )
Next
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Library: Included as a resource in Scrdenrl.dll.
ISCrdEnr::getCertTemplateCount, ISCrdEnr::getCertTemplateName, ISCrdEnr::setCertTemplateName