The IOCTL_SMARTCARD_GET_ATTRIBUTE request 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.

Input Parameters

  • Irp->AssociatedIrp.SystemBuffer
    Contains a tag value that describes the data to retrieve.

  • Parameters.DeviceIoControl.InputBufferLength
    Must be sizeof(ULONG).

  • Parameters.DeviceIoControl.OutputBufferLength
    Contains the size of the output buffer, which receives the result. The size depends on the type of attribute to retrieve.

Output Parameters

  • Irp->AssociatedIrp.SystemBuffer
    Receives the data.

I/O Status Block

The Information member must be set to the number of bytes returned. The trailing null byte should not be included in strings.

Because this call is mandatory for all drivers, the Status member 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.



Winsmcrd.h (include Winsmcrd.h)

Send comments about this topic to Microsoft