Platform SDK: Smart Card Enrollment Control |
The setCAName method specifies the name of the certification authority (CA).
objSCEnroll.setCAName( _ dwFlags As Long, _ bstrCertTemplateName As String, _ bstrCAName As String)
This method has no return values.
Use this method to specify a CA for a certificate template.
' Define the constant. Const SCARD_ENROLL_CA_MACHINE_NAME = 1 ' Specify the machine and CA name. ' In this sample, the certificate template is ' specified by strCertTemplateName. ' 1) Specify the machine name. Senroll.setCAName SCARD_ENROLL_CA_MACHINE_NAME, _ strCertTemplateName, _ "MyServer" ' 2) Specify the CA name. Senroll.setCAName 0, _ strCertTemplateName, _ "MyCA"
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Library: Included as a resource in Scrdenrl.dll.