Hi, *.*
I want to detect whether card reader is attached to the PC,
but no matter the card reader is attached to the PC or not, it
always print out the terminal's name.
The code dealing with it in the applet is :
try {
SmartCard.start ();
CardTerminalRegistry ctr = CardTerminalRegistry.getRegistry ();
Enumeration terminals = ctr.getCardTerminals ();
int counter = 0;
while (terminals.hasMoreElements () ) {
CardTerminal terminal = (CardTerminal) terminals.nextElement ();
printTerminalInfos (terminal);
counter++;
}
catch {
.............
}
But under windows 98, whether the card reader is attached to the PC,
it always return the card reader's information. On the platform of win2k,
when the card reader is not attached to the PC, some error message will
appear in the Java Console:
[ERROR ] com.ibm.opencard.terminal.pcsc10.OCFPCSC1.OCFPCSC1.SCardGetStatusChange
--- message PCSC Exception in method SCardGetStatusChange: error executing
SCardGetStatusChange
return code = 8010002e
--- thread Thread[Thread-9,4,http://202.116.77.37/nunp/-threadGroup]
--- source com.ibm.opencard.terminal.pcsc10.OCFPCSC1@285d38
Do you have any idea?
Thank You!
Best Regards,
zzt
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.