Hi everyone, I am having problem with function I cannot get to work properly
when no card are inserted into my reader.

The first call with SCARD_STATE_UNAWARE return immediately with dwEventState
equal to 0x000222. Then I copy this value into CurrentState recall
SCardGetStatusChange. Return without blocking again but this time with
dwEventState equal to 0x000012. If I repeat the process without inserting a
card it will switch of status between 0x000222 and 0x000012 back and forth.

If I insert a card in the reader it will return me that a card is present
and the next call to SCardGetStatusChange will block until I remove the card
which is correct...

Do you have any idea what it could be?

Regards,

Re: SCardGetStatusChange Problem by Keaven

Keaven
Wed Oct 25 07:44:01 CDT 2006

I know there is an update available about this but I applied this update and
it doesn't change anything...

"Keaven Pineau" <keavenpineau@nospam.com> wrote in message
news:evAwgCFyGHA.2300@TK2MSFTNGP05.phx.gbl...
> Hi everyone, I am having problem with function I cannot get to work
> properly when no card are inserted into my reader.
>
> The first call with SCARD_STATE_UNAWARE return immediately with
> dwEventState equal to 0x000222. Then I copy this value into CurrentState
> recall SCardGetStatusChange. Return without blocking again but this time
> with dwEventState equal to 0x000012. If I repeat the process without
> inserting a card it will switch of status between 0x000222 and 0x000012
> back and forth.
>
> If I insert a card in the reader it will return me that a card is present
> and the next call to SCardGetStatusChange will block until I remove the
> card which is correct...
>
> Do you have any idea what it could be?
>
> Regards,
>
>