i have successfully write code to read id card as Bruce's documents. Now i want to get automatic card reading when insert card to the reader, try to call external function SCardGetStatusChangeW and create SCARD_READERSTATE structures but failed to code it. Any helps, please.