Smart card client driver event callback functions

The event callback functions that the smart card client driver implements. The functions are defined by smart card class extension (WudfSmcClassExt) library. The smart card class extension calls these functions to notify the smart card client driver of certain events, such as a power state change request. In the implementation, the client driver provides functionality depending on the hardware and the protocol supported by the smart card.

The client driver registers these event callback functions in the driver's EvtDriverDeviceAdd function by calling the SmcDeviceInitConfig method.

In this section

Topic Description

PFN_SMC_ASSIGN_CARD_POWER

Mandatory. Handles the request to reset or turn off an inserted smart card.

PFN_SMC_EJECT

Optional. Handles the request to eject the currently inserted card from the smart card reader.

PFN_SMC_PARSE_ATR

Optional. Handles the request to parse an answer-to-reset (ATR) when the smart card class extension is unable to recognize the ATR.

PFN_SMC_SET_PROTOCOL

Mandatory. Handles the request to select a transmission protocol for the inserted smart card.

PFN_SMC_SWALLOW

Optional. Handles the request to perform a mechanical swallow, which is what happens when the smart card is fully inserted into the smart card reader.

PFN_SMC_TRANSMIT

Mandatory. Handles the request to transmit data to/from reader.

PFN_SMC_VENDOR_IOCTL

Optional. Handles the request to perform a vendor-specific IOCTL operation.

 

 

 

Send comments about this topic to Microsoft