Microsoft Windows CE 3.0  

IOCTL_SMARTCARD_EJECT

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This code requests a smart card reader driver to eject the currently inserted smart card from the smart card reader.

Parameters

dwOpenData
Handle returned from a call to the smart card reader driver's XXX_Openfunction.
dwCode
Specifies this code.
pBufIn
Ignored.
dwLenIn
Ignored.
pBufOut
Pointer to the DWORDto 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
Specifies the size of the pBufOutpointer.
pdwActualOut
Pointer to a DWORDto return the length of the returned data; should be set to sizeof( DWORD) if there is no error.

Return Values

One of the following Statusvalues:

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.

Note: Smart card reader drivers return Windows NT status values, rather than Win32 error values, as the return values from the driver's callback function.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.