The SCardEndTransaction function completes a previously declared transaction, allowing other applications to resume interactions with the card.
LONG SCardEndTransaction(
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). |
SCardEndTransaction 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.
SCardConnect, SCardBeginTransaction