From: AO on
When I run test 1 of ifdtest2, section e (power management tests), I get a
couple of failures. Does anyone have an idea of what's wrong with my driver
given the information below? Any input is of interest.

Test 1: DO NOT INSERT smart card during hibernate mode
Card out / card out - Hibernating now * FAILED
- GetOverlappedResult failed
>> Please insert smart card Passed
Checking reader status *
FAILED
- Invalid reader state.
Returned 1
Expected > 1

Short description of the test:
1) The test instructs me to insert a card
2) The test instructs me to remove the card
3) The test hibernates the computer
4) I wake the computer
5) The test instructs me to insert a card
6) The test hibernates the computer

The test is supposed to hibernate at card insertion (5 - 6) but the thing is
I
never insert a card but yet the test hibernates the computer. It's a mystery
to
me how the test thinks the card is inserted when it in fact isn't. During the
test, I log a whole lot of stuff in my driver which may be of help. The log
is too long to post but according to the log, the card status seems correct.

What driver behavior is expected by the test?

Are you supposed to do anything special with the request from the PCSC
manager in this case?