SmartcardT1Reply (Windows Embedded CE 6.0)
1/6/2010
The SmartcardT1Reply function copies data from the receive buffer to the user buffer and checks the T=1 protocol status.
Syntax
NTSTATUS SmartcardT1Reply(
PSMARTCARD_EXTENSION SmartcardExtension
);
Parameters
- SmartcardExtension
[in] Points to the smart card extension of the device.
Return Value
SmartcardT1Reply returns an NTSTATUS value. Possible values are the following.
Value | Description |
---|---|
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 the Buffer member of the SmartcardReply member in the SMARTCARD_EXTENSION structure pointed to by SmartcardExtension, and it must store the number of received bytes in the BufferLength member of SmartcardReply member of this structure. 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 again, which sets up a new buffer to be sent to the smart card.
Requirements
Header | smclib.h |
Windows Embedded CE | Windows CE 3.0 and later |