ACR1255U-J1 – Reference Manual
Version V1.01
www.acs.com.hk
Page 34 of 73
6.0. Host Programming (PC-linked) API
6.1. PC/SC API
This section describes some of the PC/SC API for application programming usage. For more details,
please refer to Microsoft MSDN Library or PC/SC workgroup.
6.1.1.
SCardEstablishContext
The
SCardEstablishContext
function establishes the resource manager context within which database
operations are performed.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379479%28v=vs.85%29.aspx
6.1.2.
SCardListReaders
The
SCardListReaders
function provides the list of readers within a set of named reader groups,
eliminating duplicates.
The caller supplies a list of reader groups, and receives the list of readers within the named groups.
Unrecognized group names are ignored. This function only returns readers within the named groups
that are currently attached to the system and available for use.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379793%28v=vs.85%29.aspx
6.1.3.
SCardConnect
The
SCardConnect
function establishes a connection (using a specific resource manager context)
between the calling application and a smart card contained by a specific reader. If no card exists in
the specified reader, an error is returned.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379473%28v=vs.85%29.aspx
6.1.4.
SCardControl
The
SCardControl
function gives you direct control of the reader. You can call it any time after a
successful call to
SCardConnect
and before a successful call to
SCardDisconnect
. The effect on the
state of the reader depends on the control code.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379474%28v=vs.85%29.aspx
Note: Commands from Section 6.66.6 – Peripherals Control are using this API for sending.
6.1.5.
ScardTransmit
The
SCardTransmit
function sends a service request to the smart card and expects to receive data
back from the card.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379804%28v=vs.85%29.aspx
Note: APDU Commands (i.e. the commands sent to connected card and Section 6.3 – Pseudo
APDU for Contactless) are using this API for sending.
6.1.6.
ScardDisconnect
The
SCardDisconnect
function terminates a connection previously opened between the calling
application and a smart card in the target reader.
Refer to:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379475%28v=vs.85%29.aspx