SmartcardT0Reply (WDM) routine
The SmartcardT0Reply routine transfers the data that was received from the smart card to the user buffer.
Syntax
NTSTATUS SmartcardT0Reply(
PSMARTCARD_EXTENSION SmartcardExtension
);
Parameters
- SmartcardExtension
A pointer to a SMARTCARD_EXTENSION structure that contains the device extension of the smart card device.
Return value
SmartcardT0Reply returns one of the following NTSTATUS values:
Return code | Description |
---|---|
STATUS_SUCCESS | The transmission was successful. |
STATUS_DEVICE_PROTOCOL_ERROR | The card did not return a T=0 status word. |
STATUS_BUFFER_TOO_SMALL | The user buffer is too small to hold the data. |
Remarks
The driver must store the data that comes from the reader into SmartcardExtension->SmartcardReply.Buffer, and it must store the number of bytes that the card returned into SmartcardExtension->SmartcardReply.BufferLength. SmartcardT0Reply then checks the validity of the data and copies the buffer, which includes the protocol header, back to the user buffer. For a code example, see SmartcardT0Request (WDM).
Requirements
Target platform |
Desktop |
Version |
Available in Windows XP and later versions of Windows. |
Header |
Smclib.h (include Smclib.h) |
Library |
Smclib.lib |
IRQL |
<= DISPATCH_LEVEL |
See also