Naughter Software Logo

SCardWrappers v1.08 A set of a set of C++ classes to provide a complete encapsulation of the Smart Card API for Windows

The classes provided are: SCard::CException, SCard::CContext, SCard::CContext2, SCard::CAPDURequest, SCard::CAPDUResponse, SCard::CCard, SCard::CCard2, SCard::CATR, SCard::String, SCard::StringArray, SCard::GUIDArray & SCard::ByteArray.

CException is the exception class used and can be thrown by CContext2 and CCard2 methods. This class is derived from std::exception.

CContext provides an encapsulation of a Smart Card SCARDCONTEXT handle.

CContext2 derives from CContext and provides an exception based version of it.

CAPDURequest provides a C++ encapsulation of a request which is sent to the Transmit method of CCard/CCard2. It also provides a Parse method to convert a raw BYTE buffer into a request.

CAPDUResponse provides a C++ encapsulation of a response which is received via the Transmit method of CCard/CCard2. It also provides a Parse method to convert a raw BYTE buffer into a response.

CCard provides an encapsulation of a Smart Card SCARDHANDLE handle.

CCard2 derives from CCard and provides an exception based version of it.

CATR provides an ATR parser class.

String is a typedef for std::string/std::wstring.

StringArray is a typedef for std::vector<String>.

GUIDArray is a typedef for std::vector<GUID>.

ByteArray is a typedef for std::vector<BYTE>.

 

 

Features

 

The enclosed zip file contains the SCardWrappers source code and a VC 2017 console based application which demonstrates most of the classes functionality.

 

Copyright

 

Updates

V1.08 (16 September 2018)

V1.07 (11 July 2018)

V1.06 (12 November 2017)

30 April 2017

V1.05 (25 March 2017)

V1.04 (24 July 2016)

V1.03 (2 January 2016)

V1.02 (29 November 2015)

V1.01 (5 April 2015)

V1.0 (28 April 2013)