Microsoft Windows CE 3.0  

IOCTL_SMARTCARD_GET_STATE

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 retreives the current status of 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
A buffer to hold the status information, one of the following values:
Status Meaning
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 present and the card reader has swallowed it.
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
Must be sizeof(ULONG)
pdwActualOut
Must be sizeof(ULONG)

Return Values

The status value STATUS_SUCCESS.

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.