Platform SDK: Smart Card Enrollment Control

ISCrdEnr::CSPName

The CSPName property specifies the name of the cryptographic service provider (CSP). This property is read-write.

objSCEnroll.CSPName [ = newVal ]

Parameters

objSCEnroll
Object expression that resolves to a SCrdEnr object.
newVal
String representing the new value for the CSP name.

Remarks

Set this property to specify the name of the CSP to use with the Smart Card Enrollment Control; get this property to retrieve the name of the specified CSP.

If you do not specify a value for this property, the CSPName property defaults to the first name in the available list of CSPs.

Example Code in VBScript

' Retrieve the CSP name.
Dim strCSPName
strCSPName = Senroll.CSPName

' Set the CSP Name.
' document.SCEnrForm.CSP is a SELECT control.
Senroll.CSPName=document.SCEnrForm.CSP.value

Requirements

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

See Also

ISCrdEnr::CSPCount, ISCrdEnr::enumCSPName