Patent ID: 8001311

Claim:
A method for simulating smartcard removal and reinsertion in a smartcard reader, the method comprising: connecting a smartcard to a smartcard reader in an insertion event; detecting the insertion event in a smartcard service and issuing an ABSENT request to a reader driver for notification upon smartcard removal; detecting the ABSENT request in a filter driver and registering a completion routine with the reader driver; issuing a PULSE request from the smartcard plug and play service to the filter driver; utilizing the filter driver to cancel the ABSENT request; receiving at the filter driver notification from the reader driver that the ABSENT request has been canceled; modifying the request status from cancelled to completed at the filter driver and indicating to the smartcard service that the smartcard was removed; issuing a PRESENT request from the smartcard service to the filter driver; forwarding the smartcard service PRESENT request from the filter driver to the reader driver; and triggering the reader driver to indicate a smartcard is present.