RDF_SET_PROTOCOL - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// smclib.h

NTSTATUS (*ReaderFunction[RDF_SET_PROTOCOL])(
   PSMARTCARD_EXTENSION SmartcardExtension
);
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (smartcard-rdf-set-protocol-callback)

RDF_SET_PROTOCOL callback function

The RDF_SET_PROTOCOL callback function selects a transmission protocol for the inserted smart card.

Parameters

Return value

This function returns an NTSTATUS value. Possible values include the following:

Return code Description
STATUS_SUCCESS A protocol was successfully selected.
STATUS_NO_MEDIA No smart card is inserted in the reader.
STATUS_IO_TIMEOUT The request timed out.
STATUS_BUFFER_TOO_SMALL The user buffer is not large enough to hold a ULONG value.
STATUS_INVALID_DEVICE_STATE The reader is not in the correct state to select a protocol. That is, a smart card is inserted, but not reset.
STATUS_INVALID_DEVICE_REQUEST The mask contains an unknown protocol.

Remarks

Smart card reader drivers must implement this callback function.

On input, the caller must pass the following values to the function:

Value Meaning
SCARD_PROTOCOL_RAW Selects the raw protocol.
SCARD_PROTOCOL_T0 Selects the ISO T = 0 protocol.
SCARD_PROTOCOL_T1 Selects the ISO T = 1 protocol.

The request returns the following values:

The caller can supply a mask of acceptable protocols. The driver's set protocol callback routine selects one of the protocols in the mask and returns the selected protocol in SmartcardExtension->IoRequest.ReplyBuffer.

Requirements

Target platform Desktop
Header Smclib.h (include Smclib.h)

See also

IOCTL_SMARTCARD_SET_PROTOCOL

PTS_DATA

SMARTCARD_EXTENSION