OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
SCardGetStatusChange() question

From: Daniel Tang (dantangALPHAGOLF.COM)
Date: Mon Aug 11 2003 - 12:34:14 CDT


I am testing removing the smartcard while reading it. After the error, I called
SCardGetStatusChange() again with dwCurrentState set to
SCARD_STATE_UNWARE, however, both the SCM SCR201 reader and the
ChipDrive Reader return 0x70122. The 0x0122 means
#define SCARD_STATE_CHANGED 0x00000002
#define SCARD_STATE_PRESENT 0x00000020
#define SCARD_STATE_INUSE 0x00000100

Question is why it still said the card is in use and present even though I had
removed the card from reader. And what does the 0x7xxxx means since I
can't find any explanation anywhere.

Thanks,

Best Regards,
Daniel Tang