IOCTL_SMARTCARD_GET_ATTRIBUTE - NtDoc

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

// CTL_CODE(0x0031, 0x002, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SMARTCARD_GET_ATTRIBUTE 0x00310008
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_SMARTCARD_GET_ATTRIBUTE IOCTL

Description

The IOCTL_SMARTCARD_GET_ATTRIBUTE control code queries for smart card attributes.

Parameters

Major code

Input buffer

(DWORD) contains the attribute tag.

Input buffer length

Output buffer

(DWORD) contains the attribute tag.

Output buffer length

Input/output buffer

Input/output buffer length

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Possible error codes are:

Return Code Description
STATUS_NOT_SUPPORTED This code is returned if the attribute is not supported.
STATUS_INVALID_PARAMETER This code is returned if the input or output buffers are invalid.
STATUS_BUFFER_TOO_SMALL This code is returned if the output buffer is too small for the return data.
STATUS_INVALID_DEVICE_STATE This code is returned if the device cannot accept the request.
STATUS_DEVICE_POWERED_OFF This code is returned if the proximity radio control is off when the call is made.

Remarks

The following actions are required when using this IOCTL:

See also

Near field communication (NFC) design guide

Smart card design guide