// winsmcrd.h
// CTL_CODE(0x0031, 0x006, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SMARTCARD_EJECT 0x00310018
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_SMARTCARD_EJECT request ejects the currently inserted smart card from the smart card reader.
None
None
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. |