IOCTL_SMARTCARD_EJECT

WDM driver version:

The IOCTL_SMARTCARD_EJECT DeviceIoControl operation ejects the currently inserted smart card from the smart card reader.

I/O Status Block

Information is set to zero. Status can be:

Status Meaning
STATUS_SUCCESS Card successfully ejected.
STATUS_NO_MEDIA No card in reader.
STATUS_NOT_SUPPORTED Reader does not support card eject.
STATUS_IO_TIMEOUT Operation has timed out.

VxD driver version:

The IOCTL_SMARTCARD_EJECT DeviceIoControl operation ejects the currently inserted smart card from the smart card reader.

Return Values

Following are possible return values.

Value Meaning
STATUS_SUCCESS Card successfully ejected.
STATUS_NO_MEDIA No card in reader.
STATUS_NOT_SUPPORTED Reader does not support card eject.
STATUS_IO_TIMEOUT Operation has timed out.