SCardEndTransaction

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 
);
 

Parameters

hCard
Supplies the reference value obtained from a previous call to SCardConnect.
dwDisposition
Indicates what to do with the card in the connected reader on close. Possible values are:
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.

Return Values

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).

Remarks

SCardEndTransaction is a smart card and reader access function. For a description of other access functions, see Smart Card and Reader Access Functions.

QuickInfo

  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.

See Also

SCardConnect, SCardBeginTransaction