Platform SDK: Smart Card Enrollment Control |
The getCAName method retrieves the name of the specified certification authority (CA) for a given certificate template.
objSCEnroll.getCAName( _ dwFlags As Long, _ bstrCertTemplateName As String) As String
String representing the name of the CA.
The default CA name is the first name in the available list of CAs.
' Define the constants. Const SCARD_ENROLL_CA_MACHINE_NAME = 1 Dim strMachineName, strCAName, strCTName strCTName = "User" strMachineName = Senroll.getCAName( _ SCARD_ENROLL_CA_MACHINE_NAME, _ strCTName) strCAName = Senroll.getCAName( _ 0, _ strCTName) MsgBox( strMachineName & "\" & strCAName )
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Library: Included as a resource in Scrdenrl.dll.
ISCrdEnr::enumCAName, ISCrdEnr::getCACount, ISCrdEnr::setCAName