Platform SDK: Smart Card Enrollment Control |
The getCACount method returns the number of Windows 2000 Enterprise certification authorities (CAs) willing to issue a certificate based on the specified certificate template.
objSCEnroll.getCACount( _ bstrCertTemplateName As String) As Long
Long value representing the number of available CAs that will issue a certificate for the certificate template specified in bstrCertTemplateName.
Dim nCount ' strCTName is the name of a certificate template. nCount = Senroll.getCACount(strCTName) If ( 0 = nCount ) Then MsgBox("No CA available for the specified certificate template.") Else MsgBox("Number of CAs is " & nCount ) End If
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Library: Included as a resource in Scrdenrl.dll.