GetOpenCardName function
The GetOpenCardName function displays the smart card "select card" dialog box. Call the function SCardUIDlgSelectCard instead of GetOpenCardName. The GetOpenCardName function is maintained for backward compatibility with version 1.0 of the Microsoft Smart Card Base Components, but calls to GetOpenCardName are mapped to SCardUIDlgSelectCard.
Syntax
LONG GetOpenCardName( _In_ LPOPENCARDNAME pDlgStruc );
Parameters
- pDlgStruc [in]
-
A pointer to the OPENCARDNAME structure for the "select card" dialog box.
Return value
The function returns different values depending on whether it succeeds or fails.
| Return code | Description |
|---|---|
|
SCARD_S_SUCCESS. |
|
An error code. For more information, see Smart Card Return Values. |
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
GetOpenCardNameW (Unicode) and GetOpenCardNameA (ANSI) |
See also