-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pcsc_scan.exe finds readers but fails to present prompt #34
Comments
Why do you expect a prompt to select a reader? I agree the continuous loop is a bug somewhere. |
I was expecting it only because of what the screenshots looked like. It appeared that the system would list readers and then ask the user to select a reader to interrogate.
Apologies if that assumption is incorrect.
|
I can't reproduce the problem on my Windows 10. diff --git a/pcsc_scan.c b/pcsc_scan.c
index e054624..6e6b29c 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -630,6 +630,7 @@ get_readers:
{
time_t t;
+ printf("rv: 0x%08X\n", rv);
if (pnp)
{
#ifdef WIN32 |
Current output is as follows:
It still loops over and over, regardless of card state. |
OK. diff --git a/pcsc_scan.c b/pcsc_scan.c
index e054624..f231e14 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -635,6 +635,7 @@ get_readers:
#ifdef WIN32
/* check if the number of readers has changed */
LONG newNbReaders = rgReaderStates_t[nbReaders-1].dwEventState >> 16;
+ printf("nbReaders: %d, .dwEventState: 0x%08X\n", nbReaders, rgReaderStates_t[nbReaders-1].dwEventState);
if (newNbReaders + 1 != nbReaders)
#else
if (rgReaderStates_t[nbReaders-1].dwEventState & |
New looping message:
|
What version of Windows do you use? |
Windows 10 (Current)
I can check exact version number when I get back.
|
Microsoft Windows [Version 10.0.18363.657] |
Try the version available at http:https://ludovic.rousseau.free.fr/softwares/pcsc-tools/pcsc_scan.c |
Some Windows systems do not report "correct" information for .dwEventState returned by SCardGetStatusChange() for the special reader "\\?PnP?\Notification". The program was looping forever trying to detect a new reader. I now use a different, less smart, code to handle this. Thanks to digitalentropy for the bug report #34
Fixed in 1727dbf |
I am observing an issue with pcsc_scan.exe detecting my readers and then looping over and over rather than presenting a prompt to select reader and action.
The issue is observed when compiling from scratch and also when using the pre-compiled Windows binary.
I've uploaded a log of the output I am observing in both scenarios.
log.txt
Any thoughts on possible causes?
The text was updated successfully, but these errors were encountered: