// winsmcrd.h
// CTL_CODE(0x0031, 0x003, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SMARTCARD_SET_ATTRIBUTE 0x0031000C
View the official Windows Driver Kit DDI referenceNo description available.
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.
(DWORD) contains the attribute identifier.
Irp->AssociatedIrp.SystemBuffer Contains the tag and value to set.
Parameters.DeviceIoControl.InputBufferLength Contains the length of the tag-length value (TLV) structure.
None.
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. |
Near field communication (NFC) design guide