In addition to using PC / SC to detect the presence of a card, from your description, which does not seem very reliable if the presence of the card in the reader is the only condition (un?) For locking the PC without alarm, if you do not periodically scan the card for some randomly generated data or Is there any similar process that ensures that the card is missing, since the card can generate the correct random sequence?
user1211944
source share