IOCTL_SMARTCARD_SET_PROTOCOL - NtDoc

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

// CTL_CODE(0x0031, 0x00c, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SMARTCARD_SET_PROTOCOL 0x00310030
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-winsmcrd-ioctl_smartcard_set_protocol)

IOCTL_SMARTCARD_SET_PROTOCOL IOCTL

Description

The IOCTL_SMARTCARD_SET_PROTOCOL request sets the protocol that the driver will use to communicate with the smart card after the card is detected (inserted).

Parameters

Major code

Input buffer

Input buffer length

Output buffer

Output buffer length

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Information must be set to sizeof(ULONG).

Irp->IoStatus.Status is set to one of the following values.

Value Meaning
STATUS_SUCCESS A protocol was successfully selected.
STATUS_NO_MEDIA No smart card is detected in the reader.
STATUS_IO_TIMEOUT The operation timed out.
STATUS_NOT_SUPPORTED The smart card does not support any of the requested protocols.
STATUS_INVALID_DEVICE_REQUEST The mask contains no known protocol.

For more information, see NTSTATUS Values.

See also

Near field communication (NFC) design guide

Smart card design guide