SCardBeginTransaction

The SCardBeginTransaction function starts a transaction, waiting for the completion all other transactions before it begins.

When the transaction starts, all other applications are blocked from accessing the smart card while the transaction is in progress.

LONG SCardBeginTransaction(
  IN SCARDHANDLE hCard
);
 

Parameters

hCard
Supplies the reference value obtained from a previous call to SCardConnect.

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

SCardBeginTransaction 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, SCardEndTransaction