SmartcardRawReply (VxD)

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

NTSTATUS 
SmartcardRawReply(
  PSMARTCARD_EXTENSION SmartcardExtension
);
 

Parameters

SmartcardExtension
Points to the smart card extension of the device.

Return Values

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

Value Meaning
STATUS_SUCCESS Transmission successful.
STATUS_BUFFER_TOO_SMALL The user buffer is too small to hold the data.

Remarks

The driver must store the data coming from the reader into SmartcardExtension->SmartcardReply.Buffer and store the number of bytes returned from the card into SmartcardExtension->SmartcardReply.BufferLength. SmartcardRawReply then checks the validity of the data and copies the buffer back to the user buffer, including the protocol header.

SmartcardRawReply functions the same for WDM and VxD drivers.