RDF_READER_SWALLOW callback function
The RDF_READER_SWALLOW callback function performs a mechanical swallow, which is what happens when the smart card is fully inserted into the smart card reader.
Syntax
NTSTATUS (*ReaderFunction[RDF_READER_SWALLOW])(
PSMARTCARD_EXTENSION SmartcardExtension
);
Parameters
- SmartcardExtension
A pointer to the smart card extension, SMARTCARD_EXTENSION, of the device. On input, SmartcardExtension->MajorIoControlCode contains IOCTL_SMARTCARD_SWALLOW.
Return value
This function returns an NTSTATUS value. Possible values include the following:
| Return code | Description |
|---|---|
| STATUS_SUCCESS | Function successfully executed. |
| STATUS_NO_MEDIA | No smart card is inserted in the reader. |
| STATUS_IO_TIMEOUT | The request timed out. |
Remarks
It is optional for smart card reader drivers to implement this callback function.
Requirements
Target platform |
Desktop |
Header |
Smclib.h (include Smclib.h) |
See also