IOCTL_SMARTCARD_GET_STATE control code
The IOCTL_SMARTCARD_GET_STATE request retrieves the current status of the smart card reader.
Contains the size of the output buffer. Must be at least sizeof(ULONG).
Receives the status of the card. The status can be one of the following values.
The smart card reader does not know the status.
No smart card is currently inserted.
A smart card is inserted.
A smart card is inserted and the smart card reader has swallowed it.
The smart card is turned on but the smart card reader cannot determine its mode.
A smart card is inserted and awaits protocol negotiation.
A smart card is inserted and a protocol has been selected.
I/O Status Block
The Information member must be set to sizeof(ULONG).
The Status member must be set to STATUS_SUCCESS.
|Winsmcrd.h (include Winsmcrd.h)|