IOCTL_SMARTCARD_GET_STATE (Windows CE 5.0)
This code retrieves the current status of 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] A buffer to hold the status information, one of the following values.Status Description SCARD_UNKNOWN Status is unknown. SCARD_ABSENT There is no card in the card reader. SCARD_PRESENT A card is present in the card reader. SCARD_SWALLOWED A card is in the reader and in position for use. The card is not powered. SCARD_POWERED The card is powered but the reader cannot determine its mode. SCARD_NEGOTIABLE A card is present and is waiting for protocol negotiation. SCARD_SPECIFIC A card is present and a protocol has been negotiated. - dwLenOut
[out] Must be sizeof(ULONG). - pdwActualOut
[out] Must be sizeof(ULONG).
Return Values
The status value STATUS_SUCCESS.
Remarks
Smart card reader drivers return Windows NT status values, rather than 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
Send Feedback on this topic to the authors