IOCTL_SMARTCARD_SET_ATTRIBUTE - NtDoc

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

// CTL_CODE(0x0031, 0x003, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SMARTCARD_SET_ATTRIBUTE 0x0031000C
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_SMARTCARD_SET_ATTRIBUTE IOCTL

Description

The IOCTL_SMARTCARD_SET_ATTRIBUTE control code sets various attributes in a smart card reader driver and returns STATUS_SUCCESS on SCARD_ATTR_DEVICE_IN_USE; otherwise, it returns STATUS_NOT_SUPPORTED.

Parameters

Major code

Input buffer

(DWORD) contains the attribute identifier.

Input buffer length

Output buffer

None.

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 The attribute has been set successfully.
STATUS_NOT_SUPPORTED The attribute is not supported.
STATUS_INVALID_PARAMETER The attribute to set is in the wrong format.
STATUS_DEVICE_POWERED_OFF The proximity radio control is off.

See also

Near field communication (NFC) design guide

Smart card design guide