SmcCxSetCardState function
Sets the current state of the smart card.
Syntax
FORCEINLINE void SmcCxGetCardState(
_In_ WDFDEVICE Device,
_In_ ULONG NewState
);
Parameters
Device [in]
Handle to the framework device object.NewState [in]
The new state of the smart card. Possible values are:Value Meaning SCARD_UNKNOWN
The smart card reader does not know the status.
SCARD_ABSENT
No smart card is currently inserted.
SCARD_PRESENT
A smart card is inserted.
SCARD_SWALLOWED
A smart card is inserted and the smart card reader has swallowed it.
SCARD_POWERED
The smart card is turned on but the smart card reader cannot determine its mode.
SCARD_NEGOTIABLE
A smart card is inserted and awaits protocol negotiation.
SCARD_SPECIFIC
A smart card is inserted and a protocol has been selected.
Return value
This function does not return a value.
Requirements
Target platform |
Desktop |
Header |
SmcCx.h on Windows 10 |
See also