Share via


SmartcardT0Reply

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

Syntax

NTSTATUS SmartcardT0Reply(
  PSMARTCARD_EXTENSION SmartcardExtension
);

Parameters

  • SmartcardExtension
    [in] Points to the smart card extension of the device.

Return Value

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

Value Description

STATUS_SUCCESS

Transmission 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 coming from the reader into the Buffer member of the SmartcardReply member of the structure pointed to by SmartcardExtension and then it must store the number of bytes returned from the card into the BufferLength member of the SmartcardReply member of this structure. SmartcardT0Reply then checks the validity of the data and copies the buffer back to the user buffer, including the protocol header. See SmartcardT0Request for sample code.

Requirements

Header smclib.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

SmartcardT0Request