GetOpenCardNameW function (winscard.h)
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 GetOpenCardNameW(
[in] LPOPENCARDNAMEW unnamedParam1
);
Parameters
[in] unnamedParam1
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. |
Remarks
Note
The winscard.h header defines GetOpenCardName as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | winscard.h |
Library | Scarddlg.lib |
DLL | Scarddlg.dll |