Re: SCFILTER?

Hi,

I have an issue with this SCFILTER thing. We have a Smartcard driver and
whenever the Smartcard driver gets installed we see there is a filter
attached to our smartcard driver, but the driver (SCFILTER) isn’t installed,
see that the Hardware Id is SCFILTE\CID_XXX (where xxx is a lot of digits).
Currently using the RC build of win7. Any clues to what might be going on.

Walter Oney,
Does the SCFIlter.sys driver allways get loaded in your case.

Thanks
Faik

On Wed, May 6, 2009 at 5:09 PM, Doron Holan wrote:

> It creates a child stack based on the smart card itself. By giving the sc
> an identity, you can then download a cred provider via WU or an inbox inf on
> demand so that you can start talking to the card
>
> d
>
> Sent from my phone with no t9, all spilling mistakes are not intentional.
>
> -----Original Message-----
> From: Walter Oney
> Sent: Wednesday, May 06, 2009 7:30 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] SCFILTER?
>
>
> What is SCFILTER.SYS in Win-7? It appears to be an upper filter for
> kernel-mode smart card drivers, and it would be nice to know what it does
> since I (and many of my customers) are upgrading our drivers. I’ve already
> observed that it creates PDOs and responds to QUERY_DEVICE_RELATIONS, but I
> haven’t looked any further just yet.
>
> Walter Oney
> Consulting and Training
> www.oneysoft.com
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

I can’t understand what you are saying. On the one hand, are you saying the filter is not installed for your reader? But on the other hand you are quoting a hw ID (SCFILTE\CID_XXX) which only scfilter creates.

Is your reader umdf or a km(df) driver?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.


From: Faik Riza
Sent: Thursday, June 18, 2009 4:17 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] SCFILTER?

Hi,

I have an issue with this SCFILTER thing. We have a Smartcard driver and whenever the Smartcard driver gets installed we see there is a filter attached to our smartcard driver, but the driver (SCFILTER) isn’t installed, see that the Hardware Id is SCFILTE\CID_XXX (where xxx is a lot of digits). Currently using the RC build of win7. Any clues to what might be going on.

Walter Oney,
Does the SCFIlter.sys driver allways get loaded in your case.

Thanks
Faik

On Wed, May 6, 2009 at 5:09 PM, Doron Holan > wrote:
It creates a child stack based on the smart card itself. By giving the sc an identity, you can then download a cred provider via WU or an inbox inf on demand so that you can start talking to the card

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: Walter Oney >
Sent: Wednesday, May 06, 2009 7:30 AM
To: Windows System Software Devs Interest List >
Subject: [ntdev] SCFILTER?

What is SCFILTER.SYS in Win-7? It appears to be an upper filter for
kernel-mode smart card drivers, and it would be nice to know what it does
since I (and many of my customers) are upgrading our drivers. I’ve already
observed that it creates PDOs and responds to QUERY_DEVICE_RELATIONS, but I
haven’t looked any further just yet.

Walter Oney
Consulting and Training
www.oneysoft.comhttp:


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</http:>

Hi Doron,

The driver is a KMDF driver.

Now I understand your previous reply to Walter. Was confused about how that
child stack was supposed to be created and also confused why there was a
new PDO with my sc driver as its’ parrent since my driver wasn’t creating a
new PDO. Forgot to actually check what drivers were loaded for my device.
Confused and tired. Sorry.

Anyway,

So this is what I am observing on my test machine.

I have now actually checked and can see that scfilter.sys is loaded.

Now the actuall issue:

It seems as if there are actually two child stacks created. One of them
seems to have installed but on the other I get a “yellow bang” The error
code in device manager is Code 28. Installing it manually works.

The one that doesn’t install has the Hardware Id SCFILTER\CID_xxx…
And the other which installs properly has the Hardware ID { some GUID
}\ScFilter

Is there supposed to be two child stacks? What might be the reason for one
of them not getting installed?

Thanks
/faik

On Thu, Jun 18, 2009 at 3:52 PM, Doron Holan wrote:

> I can’t understand what you are saying. On the one hand, are you saying
> the filter is not installed for your reader? But on the other hand you are
> quoting a hw ID (SCFILTE\CID_XXX) which only scfilter creates.
>
> Is your reader umdf or a km(df) driver?
>
> d
>
> Sent from my phone with no t9, all spilling mistakes are not intentional.
>
> ------------------------------
> From: Faik Riza
> Sent: Thursday, June 18, 2009 4:17 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] SCFILTER?
>
> Hi,
>
> I have an issue with this SCFILTER thing. We have a Smartcard driver and
> whenever the Smartcard driver gets installed we see there is a filter
> attached to our smartcard driver, but the driver (SCFILTER) isn’t installed,
> see that the Hardware Id is SCFILTE\CID_XXX (where xxx is a lot of digits).
> Currently using the RC build of win7. Any clues to what might be going on.
>
> Walter Oney,
> Does the SCFIlter.sys driver allways get loaded in your case.
>
>
> Thanks
> Faik
>
> On Wed, May 6, 2009 at 5:09 PM, Doron Holan wrote:
>
>> It creates a child stack based on the smart card itself. By giving the sc
>> an identity, you can then download a cred provider via WU or an inbox inf on
>> demand so that you can start talking to the card
>>
>> d
>>
>> Sent from my phone with no t9, all spilling mistakes are not intentional.
>>
>> -----Original Message-----
>> From: Walter Oney
>> Sent: Wednesday, May 06, 2009 7:30 AM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] SCFILTER?
>>
>>
>> What is SCFILTER.SYS in Win-7? It appears to be an upper filter for
>> kernel-mode smart card drivers, and it would be nice to know what it does
>> since I (and many of my customers) are upgrading our drivers. I’ve already
>> observed that it creates PDOs and responds to QUERY_DEVICE_RELATIONS, but
>> I
>> haven’t looked any further just yet.
>>
>> Walter Oney
>> Consulting and Training
>> www.oneysoft.com
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Are both stacks enumerated at the same time? You will get a new unique child stack for each card type plugged in.

d

Sent from my phone with no t9, all spilling mistakes are not intentional.


From: Faik Riza
Sent: Thursday, June 18, 2009 7:47 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] SCFILTER?

Hi Doron,

The driver is a KMDF driver.

Now I understand your previous reply to Walter. Was confused about how that child stack was supposed to be created and also confused why there was a new PDO with my sc driver as its’ parrent since my driver wasn’t creating a new PDO. Forgot to actually check what drivers were loaded for my device. Confused and tired. Sorry.

Anyway,

So this is what I am observing on my test machine.

I have now actually checked and can see that scfilter.sys is loaded.

Now the actuall issue:

It seems as if there are actually two child stacks created. One of them seems to have installed but on the other I get a “yellow bang” The error code in device manager is Code 28. Installing it manually works.

The one that doesn’t install has the Hardware Id SCFILTER\CID_xxx…
And the other which installs properly has the Hardware ID { some GUID }\ScFilter

Is there supposed to be two child stacks? What might be the reason for one of them not getting installed?

Thanks
/faik

On Thu, Jun 18, 2009 at 3:52 PM, Doron Holan > wrote:
I can’t understand what you are saying. On the one hand, are you saying the filter is not installed for your reader? But on the other hand you are quoting a hw ID (SCFILTE\CID_XXX) which only scfilter creates.

Is your reader umdf or a km(df) driver?

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

________________________________
From: Faik Riza >
Sent: Thursday, June 18, 2009 4:17 AM

To: Windows System Software Devs Interest List >
Subject: Re: [ntdev] SCFILTER?

Hi,

I have an issue with this SCFILTER thing. We have a Smartcard driver and whenever the Smartcard driver gets installed we see there is a filter attached to our smartcard driver, but the driver (SCFILTER) isn’t installed, see that the Hardware Id is SCFILTE\CID_XXX (where xxx is a lot of digits). Currently using the RC build of win7. Any clues to what might be going on.

Walter Oney,
Does the SCFIlter.sys driver allways get loaded in your case.

Thanks
Faik

On Wed, May 6, 2009 at 5:09 PM, Doron Holan > wrote:
It creates a child stack based on the smart card itself. By giving the sc an identity, you can then download a cred provider via WU or an inbox inf on demand so that you can start talking to the card

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: Walter Oney >
Sent: Wednesday, May 06, 2009 7:30 AM
To: Windows System Software Devs Interest List >
Subject: [ntdev] SCFILTER?

What is SCFILTER.SYS in Win-7? It appears to be an upper filter for
kernel-mode smart card drivers, and it would be nice to know what it does
since I (and many of my customers) are upgrading our drivers. I’ve already
observed that it creates PDOs and responds to QUERY_DEVICE_RELATIONS, but I
haven’t looked any further just yet.

Walter Oney
Consulting and Training
www.oneysoft.comhttp:


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</http:>

Hi

“Are both stacks enumerated at the same time?”

Yes both the stacks are enumerated at the same time and only one of them is
installed properly. (our device is a composite device and one of its’
functionality is Smart Card if that for some reason matters)

“You will get a new unique child stack for each card type plugged in.”

What would the Hardware Id’s be in case of having different card types? Will
they be SCFILTER\CID_xxx and SCFILTER\CID_yyy? It is strange in that case
that I see a hardware ID which is {GUID}\ScFilter.

Regards
/Faik

2 PDOs for the reader are expected. {guid}\scfilter is a “control device” stack that the system uses to talk to the filter. SCFILTER\CID_xxx is the card itself. Yes if there is a different cart type inserted, a new PDO will be enumerated (the old card PDO will be removed on card removal). The “drivers” that install on the card PDO are not drivers for the card itself, but rather cred provider DLLs that will be used by the cred manager. Win7 will not ship with all the matching cred providers for all the cards out there, so it is expected that you will have card PDOs that are !'ed out.

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Faik Riza
Sent: Thursday, June 18, 2009 10:10 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] SCFILTER?

Hi

“Are both stacks enumerated at the same time?”

Yes both the stacks are enumerated at the same time and only one of them is installed properly. (our device is a composite device and one of its’ functionality is Smart Card if that for some reason matters)

“You will get a new unique child stack for each card type plugged in.”

What would the Hardware Id’s be in case of having different card types? Will they be SCFILTER\CID_xxx and SCFILTER\CID_yyy? It is strange in that case that I see a hardware ID which is {GUID}\ScFilter.

Regards
/Faik

— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer