Platform SDK: Smart Card Enrollment Control

ISCrdEnr::selectUserName

The selectUserName method displays a 'Select User' interface, allowing a user name to be selected. The user name applies to the user on whose behalf the certificate enrollment is intended.

objSCEnroll.selectUserName(dwFlags As Long)

Parameters

objSCEnroll
Object expression that resolves to a SCrdEnr object.
dwFlags
Reserved for future use. Set this value to 0.

Return Values

This method has no return values.

Remarks

Use this method to select the name of the user. Once a user name has been selected, its value can be retrieved by calling the ISCrdEnr::getUserName method.

An alternative to using the 'Select User' interface is to specify a user by calling the ISCrdEnr::setUserName method.

Example Code in VBScript

' Display the Select User dialog box
Senroll.selectUserName(0)

Requirements

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

See Also

ISCrdEnr::getUserName, ISCrdEnr::resetUser, ISCrdEnr::setUserName