Export (0) Print
Expand All
Expand Minimize

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 codeDescription
Success

SCARD_S_SUCCESS.

Failure

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

Winscard.h

Library

Scarddlg.lib

DLL

Scarddlg.dll

Unicode and ANSI names

GetOpenCardNameW (Unicode) and GetOpenCardNameA (ANSI)

See also

OPENCARDNAME

 

 

Community Additions

ADD
Show:
© 2014 Microsoft