[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-smartcardddk
Subject:    Re: a SmartCard Windows 2000 driver developer rookie.
From:       michael stilmant <michael.stilmant () ADTECH ! BE>
Date:       2002-10-21 16:03:29
[Download RAW message or body]

Hello all I've find solution to my problem I post it because it's a
strange isssue.

before i've put this initialization in the starting of my driver.
>    /* Current state of reader (card present/removed/activated).
>    pSmartcardExtension->ReaderCapabilities.CurrentState = SCARD_UNKNOWN;

so i've this sequence

> SCARAP!scarap_DeviceControl: Enter
> SCARAP!scarap_DeviceControl: IoControlCode = 310028h
> SMCLIB!SmartcardDeviceControl: Enter <ADTech S.A.:0>, IOCTL =
>                                IS_PRESENT, IRP = fd742408
> SMCLIB!SmartcardDeviceControl: IoCompleteRequest. IRP = fd742408
>                                (c0000184h)
> SMCLIB!SmartcardDeviceControl: Exit. IOCTL = IS_PRESENT, IRP = fd742408
>                                (c0000184h)
> SCARAP!scarap_DeviceControl: SmartcardDeviceControl status:=C0000184h
> SCARAP!scarap_DeviceControl: Exit. status = C0000184h

where

> // The device is not in a valid state to perform this request.
> //
> #define STATUS_INVALID_DEVICE_STATE      ((NTSTATUS)0xC0000184L)

if I've use

> pSmartcardExtension->ReaderCapabilities.CurrentState = SCARD_ABSENT;

I've no problem.

But if I look DDK sample driver (Pnp ones) there use the SCARD_UNKNOWN
state at there initialization.

Why it's not working for my non-Pnp driver. Is there a problem with
SMCLIB ?


thanks.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic