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.
Parameters
- dwOpenData
[in] Handle returned from a call to the smart card reader driver's XXX_Open (Device Manager) function. - dwCode
[in] Specifies this code. - pBufIn
Ignored. - dwLenIn
Ignored. - pBufOut
[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) 0
as the returned event mask. - dwLenOut
[out] Specifies the size of the pBufOut pointer. - pdwActualOut
[out] Pointer to a DWORD to return the length of the returned data; should be set to sizeof(DWORD) if there is no error.
Return Values
One of the following Status values.
Status | Description |
---|---|
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. |
Remarks
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.
Requirements
OS Versions: Windows CE 3.0 and later.
Header: Winsmcrd.h.
See Also
XXX_Open (Device Manager) | IOCTL_SERIAL_SET_WAIT_MASK
Send Feedback on this topic to the authors