Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function completes a previously declared transaction, enabling other applications to resume interactions with the card.

Syntax

LONG SCardEndTransaction(
  SCARDHANDLE 
hCard, 
  DWORD 
dwDisposition 
);

Parameters

hCard

[in] Handle to the reference value obtained from a previous call to SCardConnect.

dwDisposition

[in] Specifies the action that occurs when the connected reader closes. The following table shows the possible values for dwDisposition.

Value Description

SCARD_LEAVE_CARD

No action occurs.

SCARD_RESET_CARD

Resets the card.

SCARD_UNPOWER_CARD

Powers down the card.

SCARD_EJECT_CARD

Ejects the card.

Return Value

The following table shows the possible return values.

Value Description

SCARD_S_SUCCESS

Succeeds

An error value (see Smart Card Error Valuesfor a list of all error values).

Fails

Remarks

SCardEndTransactionis a smart card and reader access function.

Requirements

Header winscard.h
Library winscard.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also