laudraup
Tue Jun 22 06:09:19 CDT 2004
Great thanks to Great Walter Oney:-)
I'm wondering
Use our own test program,I tried to simulate the power management test.
That is:
DO NOT INSERT smart card during hibernate mode
REMOVE smart card DURING hibernate mode
DO NOT REMOVE smart card during hibernate mode
INSERT smart card DURING hibernate mode
And in every case the driver work well,can successfully detect card absent
or present.
but when turned to the WHQl test:-(
Test 1: DO NOT INSERT smart card during hibernate mode
Card out / card out - Hibernate now * FAILED
- GetOverlappedResult failed
Returned 0
Expected 3e4
what does this "GetOverlappedResult "mean??
You know,I didn't complete the pending card_present irp in this case...
"Walter Oney" <waltoney@oneysoft.com> wrote in message
news:40D7031D.88717D8C@oneysoft.com...
> laudraup wrote:
> > I am doing WHQL test for smart card reader.
> > As a serial attached smart card reader,and the power is supplied by an
> > adaptor.
> > when trying card reader test,failed in Part E:
> > Power Management Test:
> > Even the system hibernate,the reader is always powerd by the adaptor...
> > in this case,what measure should i take?
> > I mean :the cardtracking policy..
>
> The test has nothing to do with whether your reader is powered or not.
> If you simply pretend that there was a card removal each time power is
> raised from something else to S0, you will pass the test. I.e., you'll
> complete any card-absent IRP that was pending before power-off
> regardless of whether a card is present or not. If a card-present IRP
> was pending and a card happens to be present, you'll complete that IRP,
> too.
>
> --
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at
http://www.oneysoft.com