The SCardDisconnect function terminates a connection previously opened between the calling application and a smart card in the target reader.
LONG SCardDisconnect(
IN SCARDHANDLE hCard,
IN DWORD dwDisposition
);
Value | Meaning |
---|---|
SCARD_LEAVE_CARD | Don't do anything special. |
SCARD_RESET_CARD | Reset the card. |
SCARD_UNPOWER_CARD | Power down the card. |
SCARD_EJECT_CARD | Eject the card. |
If the function… | The return value is… |
---|---|
Succeeds | SCARD_S_SUCCESS. |
Fails | An error code (see Error Codes for a list of all error codes). |
SCardDisconnect is a smart card and reader access function. For a description of other access functions, see Smart Card and Reader Access Functions.
Windows NT: Use version 4.0 SP3 and later.
Windows: Use Windows 95 OSR2.1.
Windows CE: Unsupported.
Header: Declared in winscard.h.
Import Library: Link with winscard.lib.