Share via


Smart Card Driver Functions (Windows Embedded CE 6.0)

1/6/2010

The following table shows the smart card reader driver functions with a description of the purpose of each.

Programming element Description

MapNtStatusToWinError

This function maps a Microsoft® Windows NT® status code to a Microsoft Win32® error code.

RDF_CARD_EJECT

The RDF_CARD_EJECT callback function ejects an inserted smart card.

RDF_CARD_POWER

The RDF_CARD_POWER callback function resets or powers down an inserted smart card.

RDF_CARD_TRACKING

The RDF_CARD_TRACKING callback function installs an event handler to track card insertions and removals.

RDF_IOCTL_VENDOR

The RDF_IOCTL_VENDOR callback function performs vendor-specific IOCTL operations.

RDF_READER_SWALLOW

The RDF_READER_SWALLOW callback function notifies the callee that there is a non-powered card in the reader and the card is in position for use.

RDF_SET_PROTOCOL

The RDF_SET_PROTOCOL callback function selects a transmission protocol for the currently inserted card.

RDF_TRANSMIT

The RDF_TRANSMIT callback function performs data transmissions.

SmartcardCreateLink

The SmartcardCreateLink function registers a friendly name that an application can use to access the device through the Smart Card Resource Manager.

SmartcardDeleteLink

The SmartcardDeleteLink function deletes links that were created with SmartcardCreateLink.

SmartcardDeviceControl

The SmartcardDeviceControl function is the main entry function for the Smart Card Driver Library.

SmartcardExit

The SmartcardExit function frees buffers that were allocated during a call to SmartcardInitialize.

SmartcardInitialize

The SmartcardInitialize function allocates internal buffers for the library.

SmartcardLockDevice

The SmartcardLockDevice function takes the device critical section.

SmartcardRawReply

The SmartcardRawReply function transfers the data received from the card to the user buffer.

SmartcardRawRequest

The SmartcardRawRequest function copies data from the user buffer to the send buffer that the driver uses to transmit data to the reader.

SmartcardT0Reply

The SmartcardT0Reply function transfers the data received from the card to the user buffer.

SmartcardT0Request

The SmartcardT0Request function copies data from the user buffer to the send buffer that the driver uses to transmit data to the reader.

SmartcardT1Reply

The SmartcardT1Reply function copies data from the receive buffer to the user buffer and checks the T=1 protocol status.

SmartcardT1Request

The SmartcardT1Request function copies data from the user buffer to a send buffer and checks the T=1 protocol status.

SmartcardUnlockDevice

The SmartcardUnlockDevice function releases the device critical section claimed by SmartcardLockDevice.

SmartcardUpdateCardCapabilities

The SmartcardUpdateCardCapabilities function translates an ATR string into the SCARD_CARD_CAPABILITIES structure that can be used by the driver.

See Also

Other Resources

Smart Card Driver Reference