IOCTL_SMARTCARD_EJECT IOCTL (winsmcrd.h)

The IOCTL_SMARTCARD_EJECT request ejects the currently inserted smart card from the smart card reader.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

None

Output buffer

None

Status block

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

Return Code Description
STATUS_NO_MEDIA No smart card is in the reader.
STATUS_NOT_SUPPORTED Reader does not support smart card eject.
STATUS_IO_TIMEOUT Operation timed out.

Requirements

Requirement Value
Header winsmcrd.h