Freigeben über


SmartcardRawReply (WDM) routine

The SmartcardRawReply routine transfers the data that was received from the smart card to the user buffer.

Syntax

NTSTATUS SmartcardRawReply(
   PSMARTCARD_EXTENSION SmartcardExtension
);

Parameters

  • SmartcardExtension
    A pointer to a SMARTCARD_EXTENSION structure that contains the device extension of the smart card device.

Return value

SmartcardRawReply returns one of the following NTSTATUS values:

Return code Description
STATUS_SUCCESS

The transmission was 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 it must store the number of bytes that the card returned into SmartcardExtension->SmartcardReply.BufferLength. SmartcardRawReply then checks the validity of the data and copies the buffer, which includes the protocol header, back to SmartcardExtension->SmartcardReply.Buffer.

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

SMARTCARD_EXTENSION

 

 

Send comments about this topic to Microsoft