Previous Next

Smart Card Driver Callbacks

This section summarizes the callback functions that a vendor-supplied reader driver can implement. A reader driver makes these callback functions available for the smart card library routine, SmartcardDeviceControl, to call by storing pointers to them in the smart card device extension. The pointers are stored in an array of function pointers located in the ReaderFunction member of the smart card device extension, SMARTCARD_EXTENSION.

Individual callback functions can be identified by means of a series of constant values that should be used as indices into the ReaderFunction array. The list of indices is as follows:

RDF_ATR_PARSE

RDF_CARD_POWER

RDF_CARD_EJECT

RDF_CARD_TRACKING

RDF_IOCTL_VENDOR

RDF_READER_SWALLOW

RDF_SET_PROTOCOL

RDF_TRANSMIT