IOCTL_SMARTCARD_EJECT (Windows CE 5.0)
This code requests a smart card reader driver to eject the currently inserted smart card from the smart card reader.
[in] Handle returned from a call to the smart card reader driver's XXX_Open (Device Manager) function.
[in] Specifies this code.
[out] Pointer to the DWORD to place in the event mask. The returned mask shows the event that terminated the wait. If a process attempts to change the device handle's event mask by using the IOCTL_SERIAL_SET_WAIT_MASK call, the driver should return immediately with
(DWORD) 0as the returned event mask.
[out] Specifies the size of the pBufOut pointer.
[out] Pointer to a DWORD to return the length of the returned data; should be set to sizeof(DWORD) if there is no error.
One of the following Status values.
|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.|
Smart card reader drivers return Microsoft® Windows NT® status values, rather than Microsoft Win32® error values, as the return values from the driver's callback function.
OS Versions: Windows CE 3.0 and later.
Send Feedback on this topic to the authors