IOCTL_SMARTCARD_GET_ATTRIBUTE

WDM driver version:

The IOCTL_SMARTCARD_GET_ATTRIBUTE DeviceIoControl operation queries smart card and smart card reader attributes. For a list of all defined attributes, refer to Part 3 of the Interoperability Specification for ICCs and Personal Computer Systems (see Documents at http://www.smartcardsys.com/).

Input

Irp->AssociatedIrp.SystemBuffer
Contains a tag value describing the data to be retrieved.
Parameters.DeviceIoControl.InputBufferLength
Must be sizeof(ULONG).
Parameters.DeviceIoControl.OutputBufferLength
The size of the output buffer, which receives the result. The size depends on the type of attribute to be retrieved.

Output

Irp->AssociatedIrp.SystemBuffer
Receives the data.

I/O Status

Information must be set to the number of bytes returned. The trailing null byte should not be included in strings. Since these calls are all mandatory for all drivers, Status must be set to STATUS_SUCCESS. However, if a driver does not support a particular attribute, the driver must set Status to STATUS_NOT_SUPPORTED.

VxD driver version:

The IOCTL_SMARTCARD_GET_ATTRIBUTE DeviceIoControl operation queries smart card and smart card reader attributes. For a list of all defined attributes, refer to Part 3 of the Interoperability Specification for ICCs and Personal Computer Systems (see Documents at http://www.smartcardsys.com/).

Input

DiocParams->lpvInBuffer
Contains a tag value describing the data to be retrieved.
DiocParams->cbInBuffer
Must be sizeof(ULONG).
DiocParams->cbOutBuffer
The size of the output buffer, which receives the result. The size depends on the type of attribute to be retrieved.

Output

DiocParams->lpvOutBuffer
Receives the data.
DiocParams->lpcbBytesReturned
Must be set to the number of bytes returned. The trailing null byte should not be included in strings.

Return Values

Since these calls are all mandatory for all drivers, status must be set to STATUS_SUCCESS. However, if a driver does not support a particular attribute, the driver must set status to STATUS_NOT_SUPPORTED.