SmartcardT1Reply (VxD)

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

NTSTATUS 
SmartcardT1Reply(
  PSMARTCARD_EXTENSION SmartcardExtension
);

Parameters

SmartcardExtension
Points to the smart card extension of the device.

Return Values

SmartcardT1Reply returns an NTSTATUS value. Possible values are the following.

Value Meaning
STATUS_SUCCESS Transmission successful.
STATUS_DEVICE_PROTOCOL_ERROR Too many transmission errors.
STATUS_BUFFER_TOO_SMALL The user buffer is too small to hold the data.
STATUS_MORE_PROCESSING_REQUIRED The protocol requires additional transmissions.

Remarks

SmartcardT1Reply must be called after the driver has received data coming from the smart card. The driver must store received smart card data in SmartcardExtension->SmartcardReply.Buffer and the number of received bytes in SmartcardExtension->SmartcardReply.BufferLength. SmartcardT1Reply checks the protocol status and copies any smart card data to the user buffer. If the transmission is not yet finished, SmartcardT1Reply returns STATUS_MORE_PROCESSING_REQUIRED, indicating the necessity to call SmartcardT1Request (VxD) again, which sets up a new buffer to be sent to the smart card.

SmartcardT1Reply functions the same for WDM and VxD drivers.