Hi,

I'm trying to modify the PSCR sample DDK to make a virtual PCSC driver. I
removed all HW dependencies from PSCR. Now I see the Smart Card Resource
Manager opening a handle to my driver, but one of the last IRPs gets
cancelled due to an invalid code forwarded to SmartcardDeviceControl. I am
receiving it from Resource Manager after QUERY_DEVICE_RELATIONS... Any ideea
how to troubleshoot this? Is there a better place to ask Smart Card specific
questions?

For details please see the log bellow:
SMCLIB!PscrCreateClose: Open
PSCR!PscrPnPDeviceControl: Exit c00000bb
PSCR!PscrPnPDeviceControl: Enter
PSCR!PscrPnPDeviceControl: Default 7
PSCR!PscrPnPDeviceControl: Exit c00000bb
SMCLIB!PscrDeviceIoControl: --------- 860aa448
SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x0 Minor - 0x0
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
SMCLIB!PscrDeviceIoControl: --------- 860aa448
SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor - 0x60150
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
SMCLIB!PscrDeviceIoControl: --------- 860aa448
SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor - 0x10100
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
SMCLIB!PscrDeviceIoControl: --------- 860aa448
SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor - 0x10101
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
PSCR!PscrPnPDeviceControl: Enter
PSCR!PscrPnPDeviceControl: Default 7
PSCR!PscrPnPDeviceControl: Exit 0
SMCLIB!PscrDeviceIoControl: --------- 8645db28
SMCLIB!PscrDeviceIoControl: IRP - 8645db28 Major - 0x310008 Minor -
0x7fff0001
PSCR!CBCardTracking: Enter
PSCR!CBCardTracking: Exit
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 103
SMCLIB!PscrDeviceIoControl: --------- 863ece00
SMCLIB!PscrDeviceIoControl: IRP - 863ece00 Major - 0x310028 Minor -
0x7fff0001
SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
PSCR!PscrCancel: Enter
PSCR!PscrCancel: Completing wait for Irp = 8645db28
PSCR!PscrCancel: Exit
SMCLIB!PscrCleanup: Enter
SMCLIB!PscrCleanup: Completing IRP 863ece00
SMCLIB!PscrCleanup: Exit
SMCLIB!PscrCreateClose: Close IRP 2

Many thanks in advance for any comment....
Mircea

Re: SmartCard Reader Driver by Gary

Gary
Mon Apr 10 16:46:25 CDT 2006

Did you query the Reader/Card for the ATR, and then send that ATR to the
SMCLIB? Is it a valid ATR?

--
The personal opinion of
Gary G. Little

"mircea" <mircea@discussions.microsoft.com> wrote in message
news:63F4A083-EE7F-4E3E-9498-9A1E53D8A912@microsoft.com...
> Hi,
>
> I'm trying to modify the PSCR sample DDK to make a virtual PCSC driver. I
> removed all HW dependencies from PSCR. Now I see the Smart Card Resource
> Manager opening a handle to my driver, but one of the last IRPs gets
> cancelled due to an invalid code forwarded to SmartcardDeviceControl. I am
> receiving it from Resource Manager after QUERY_DEVICE_RELATIONS... Any
> ideea
> how to troubleshoot this? Is there a better place to ask Smart Card
> specific
> questions?
>
> For details please see the log bellow:
> SMCLIB!PscrCreateClose: Open
> PSCR!PscrPnPDeviceControl: Exit c00000bb
> PSCR!PscrPnPDeviceControl: Enter
> PSCR!PscrPnPDeviceControl: Default 7
> PSCR!PscrPnPDeviceControl: Exit c00000bb
> SMCLIB!PscrDeviceIoControl: --------- 860aa448
> SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x0 Minor - 0x0
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> SMCLIB!PscrDeviceIoControl: --------- 860aa448
> SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> 0x60150
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> SMCLIB!PscrDeviceIoControl: --------- 860aa448
> SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> 0x10100
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> SMCLIB!PscrDeviceIoControl: --------- 860aa448
> SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> 0x10101
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> PSCR!PscrPnPDeviceControl: Enter
> PSCR!PscrPnPDeviceControl: Default 7
> PSCR!PscrPnPDeviceControl: Exit 0
> SMCLIB!PscrDeviceIoControl: --------- 8645db28
> SMCLIB!PscrDeviceIoControl: IRP - 8645db28 Major - 0x310008 Minor -
> 0x7fff0001
> PSCR!CBCardTracking: Enter
> PSCR!CBCardTracking: Exit
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 103
> SMCLIB!PscrDeviceIoControl: --------- 863ece00
> SMCLIB!PscrDeviceIoControl: IRP - 863ece00 Major - 0x310028 Minor -
> 0x7fff0001
> SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> PSCR!PscrCancel: Enter
> PSCR!PscrCancel: Completing wait for Irp = 8645db28
> PSCR!PscrCancel: Exit
> SMCLIB!PscrCleanup: Enter
> SMCLIB!PscrCleanup: Completing IRP 863ece00
> SMCLIB!PscrCleanup: Exit
> SMCLIB!PscrCreateClose: Close IRP 2
>
> Many thanks in advance for any comment....
> Mircea
>
>



Re: SmartCard Reader Driver by mircea

mircea
Mon Apr 10 18:39:02 CDT 2006

At this stage I cannot talk to the SmartCard module (not implemented yet). I
would like to see the Smart Card reader driver recognized by SC Resource
Manager (just like a device without a Smart Card inserted) before I go ahead
with the ATR part....

I don't know who initiates the Error 103 followed by Cancellation and Close.

Thank you for reply,
Mircea

"Gary G. Little" wrote:

> Did you query the Reader/Card for the ATR, and then send that ATR to the
> SMCLIB? Is it a valid ATR?
>
> --
> The personal opinion of
> Gary G. Little
>
> "mircea" <mircea@discussions.microsoft.com> wrote in message
> news:63F4A083-EE7F-4E3E-9498-9A1E53D8A912@microsoft.com...
> > Hi,
> >
> > I'm trying to modify the PSCR sample DDK to make a virtual PCSC driver. I
> > removed all HW dependencies from PSCR. Now I see the Smart Card Resource
> > Manager opening a handle to my driver, but one of the last IRPs gets
> > cancelled due to an invalid code forwarded to SmartcardDeviceControl. I am
> > receiving it from Resource Manager after QUERY_DEVICE_RELATIONS... Any
> > ideea
> > how to troubleshoot this? Is there a better place to ask Smart Card
> > specific
> > questions?
> >
> > For details please see the log bellow:
> > SMCLIB!PscrCreateClose: Open
> > PSCR!PscrPnPDeviceControl: Exit c00000bb
> > PSCR!PscrPnPDeviceControl: Enter
> > PSCR!PscrPnPDeviceControl: Default 7
> > PSCR!PscrPnPDeviceControl: Exit c00000bb
> > SMCLIB!PscrDeviceIoControl: --------- 860aa448
> > SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x0 Minor - 0x0
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> > SMCLIB!PscrDeviceIoControl: --------- 860aa448
> > SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> > 0x60150
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> > SMCLIB!PscrDeviceIoControl: --------- 860aa448
> > SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> > 0x10100
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> > SMCLIB!PscrDeviceIoControl: --------- 860aa448
> > SMCLIB!PscrDeviceIoControl: IRP - 860aa448 Major - 0x310008 Minor -
> > 0x10101
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> > PSCR!PscrPnPDeviceControl: Enter
> > PSCR!PscrPnPDeviceControl: Default 7
> > PSCR!PscrPnPDeviceControl: Exit 0
> > SMCLIB!PscrDeviceIoControl: --------- 8645db28
> > SMCLIB!PscrDeviceIoControl: IRP - 8645db28 Major - 0x310008 Minor -
> > 0x7fff0001
> > PSCR!CBCardTracking: Enter
> > PSCR!CBCardTracking: Exit
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 103
> > SMCLIB!PscrDeviceIoControl: --------- 863ece00
> > SMCLIB!PscrDeviceIoControl: IRP - 863ece00 Major - 0x310028 Minor -
> > 0x7fff0001
> > SMCLIB!PscrDeviceIoControl: SmartcardDeviceControl - status : 0
> > PSCR!PscrCancel: Enter
> > PSCR!PscrCancel: Completing wait for Irp = 8645db28
> > PSCR!PscrCancel: Exit
> > SMCLIB!PscrCleanup: Enter
> > SMCLIB!PscrCleanup: Completing IRP 863ece00
> > SMCLIB!PscrCleanup: Exit
> > SMCLIB!PscrCreateClose: Close IRP 2
> >
> > Many thanks in advance for any comment....
> > Mircea
> >
> >
>
>
>