Attaching to a Device Stack of a Biometric Device

Hello,

I am developing a kind of a general-purpose filter driver able to
monitor and/or filter requests comming to various kinds of devices (USB,
disks, COM/LPT ports etc.). I ran into problems with biometric device.
When I attach my device object to a device stack representing a device
belonging to the Biometric setup class, e.g. a fingerprint reader, the
system seems to be unable to find that device and use it for the purpose
of user logon.

If I do not attach to such a device stack, everything works well. Are
there any restrictions that prevent attaching to device stacks for
biometric devices? If not, are there any special considerations a driver
filtering/monitoring such devices must take into account?

Thank you for any help or hint.

Best regards
Martin Drab

Depending on the os, bio loves in umdf or kernel. Could be your filter doesn’t work with umdf

Sent from Outlook Mailhttp: for Windows 10 phone

From: Martin Dr?b
Sent: Tuesday, October 20, 2015 3:08 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Attaching to a Device Stack of a Biometric Device

Hello,

I am developing a kind of a general-purpose filter driver able to
monitor and/or filter requests comming to various kinds of devices (USB,
disks, COM/LPT ports etc.). I ran into problems with biometric device.
When I attach my device object to a device stack representing a device
belonging to the Biometric setup class, e.g. a fingerprint reader, the
system seems to be unable to find that device and use it for the purpose
of user logon.

If I do not attach to such a device stack, everything works well. Are
there any restrictions that prevent attaching to device stacks for
biometric devices? If not, are there any special considerations a driver
filtering/monitoring such devices must take into account?

Thank you for any help or hint.

Best regards
Martin Drab


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&sdata=PnP87VEUN%2Be0E3mPE%2BrUsCm7NJ%2FOyqrJzRi31QK%2FDj4%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&sdata=2%2BFWUo4k%2FNOthclf9HEoSTBf%2Fkq4oufX7kI4Zebramg%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&sdata=z2TJlXNnsYPzDO%2BHJBvsnx1YJx146bh4rnnE8sciBqw%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf488No%3D</http:>

Thanks for your reply.

Actually, my expectations about filtering/monitoring stack of a
biometric device are low and I am aware of the UMDF possibility.
However, UMDF should not be the cause of my expereince, should it be?
AFAIK some USB devices are also implemented in usermode (UMDF) and
attaching to their device stacks does no harm to them.

My driver should work on Windows XP SP2 and later versions.

Best regards
Martin Drab

Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):

Depending on the os, bio loves in umdf or kernel. Could be your filter doesn’t work with umdf

Sent from Outlook Mailhttp: for Windows 10 phone
>
>
>
>
>
> From: Martin Dráb
> Sent: Tuesday, October 20, 2015 3:08 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>
>
>
>
>
> Hello,
>
> I am developing a kind of a general-purpose filter driver able to
> monitor and/or filter requests comming to various kinds of devices (USB,
> disks, COM/LPT ports etc.). I ran into problems with biometric device.
> When I attach my device object to a device stack representing a device
> belonging to the Biometric setup class, e.g. a fingerprint reader, the
> system seems to be unable to find that device and use it for the purpose
> of user logon.
>
> If I do not attach to such a device stack, everything works well. Are
> there any restrictions that prevent attaching to device stacks for
> biometric devices? If not, are there any special considerations a driver
> filtering/monitoring such devices must take into account?
>
> Thank you for any help or hint.
>
> Best regards
> Martin Drab
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=PnP87VEUN%2Be0E3mPE%2BrUsCm7NJ%2FOyqrJzRi31QK%2FDj4%3D
>
> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=2%2BFWUo4k%2FNOthclf9HEoSTBf%2Fkq4oufX7kI4Zebramg%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=z2TJlXNnsYPzDO%2BHJBvsnx1YJx146bh4rnnE8sciBqw%3D
>
> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf488No%3D
></http:>

How are you attaching to the stack? As a lower filter?

Sent from Outlook Mailhttp: for Windows 10 phone

From: Martin Dr?b
Sent: Tuesday, October 20, 2015 6:38 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device

Thanks for your reply.

Actually, my expectations about filtering/monitoring stack of a
biometric device are low and I am aware of the UMDF possibility.
However, UMDF should not be the cause of my expereince, should it be?
AFAIK some USB devices are also implemented in usermode (UMDF) and
attaching to their device stacks does no harm to them.

My driver should work on Windows XP SP2 and later versions.

Best regards
Martin Drab

Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):
> Depending on the os, bio loves in umdf or kernel. Could be your filter doesn’t work with umdf
>
>
>
> Sent from Outlook Mailhttps: for Windows 10 phone
>
>
>
>
>
> From: Martin Dr?b
> Sent: Tuesday, October 20, 2015 3:08 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>
>
>
>
>
> Hello,
>
> I am developing a kind of a general-purpose filter driver able to
> monitor and/or filter requests comming to various kinds of devices (USB,
> disks, COM/LPT ports etc.). I ran into problems with biometric device.
> When I attach my device object to a device stack representing a device
> belonging to the Biometric setup class, e.g. a fingerprint reader, the
> system seems to be unable to find that device and use it for the purpose
> of user logon.
>
> If I do not attach to such a device stack, everything works well. Are
> there any restrictions that prevent attaching to device stacks for
> biometric devices? If not, are there any special considerations a driver
> filtering/monitoring such devices must take into account?
>
> Thank you for any help or hint.
>
> Best regards
> Martin Drab
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=PnP87VEUN%2Be0E3mPE%2BrUsCm7NJ%2FOyqrJzRi31QK%2FDj4%3D
>
> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=2%2BFWUo4k%2FNOthclf9HEoSTBf%2Fkq4oufX7kI4Zebramg%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=z2TJlXNnsYPzDO%2BHJBvsnx1YJx146bh4rnnE8sciBqw%3D
>
> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf488No%3D
>


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=dACpGUVoF5jdsaygO3duBB0k%2BqQHQnKVl0Zdo6cP40Y%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=ZfdDcQLqx9bVABvyedfoSb3eb4KUSjhuB968fR4RIMM%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=Jmv9qu%2FKdxRYYXwF0Oy1%2FsK8hQJ%2BFWQc4Z7fUJ2oMqA%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=SdbO1SdJgoB9uVi1j9O8zqBjf0mfS37pVILiquAl0Hc%3D</https:></http:>

I am attaching two device objects to the stack:
* one to the PDO when it is reported a a bus relation by QDR IRP. This
attach seems to cause no problems,
* one to the top of the stack when an IRP_MJ_START_DEVICE is sent (or a
little bit later). This attach causes the problem.

Martin Dráb

Dne 20. 10. 2015 v 15:50 Doron Holan napsal(a):

How are you attaching to the stack? As a lower filter?

Sent from Outlook Mailhttp: for Windows 10 phone
>
>
>
>
>
> From: Martin Dráb
> Sent: Tuesday, October 20, 2015 6:38 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>
>
>
>
>
> Thanks for your reply.
>
> Actually, my expectations about filtering/monitoring stack of a
> biometric device are low and I am aware of the UMDF possibility.
> However, UMDF should not be the cause of my expereince, should it be?
> AFAIK some USB devices are also implemented in usermode (UMDF) and
> attaching to their device stacks does no harm to them.
>
> My driver should work on Windows XP SP2 and later versions.
>
> Best regards
> Martin Drab
>
> Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):
>> Depending on the os, bio loves in umdf or kernel. Could be your filter doesn’t work with umdf
>>
>>
>>
>> Sent from Outlook Mailhttps: for Windows 10 phone
>>
>>
>>
>>
>>
>> From: Martin Dráb
>> Sent: Tuesday, October 20, 2015 3:08 AM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>>
>>
>>
>>
>>
>> Hello,
>>
>> I am developing a kind of a general-purpose filter driver able to
>> monitor and/or filter requests comming to various kinds of devices (USB,
>> disks, COM/LPT ports etc.). I ran into problems with biometric device.
>> When I attach my device object to a device stack representing a device
>> belonging to the Biometric setup class, e.g. a fingerprint reader, the
>> system seems to be unable to find that device and use it for the purpose
>> of user logon.
>>
>> If I do not attach to such a device stack, everything works well. Are
>> there any restrictions that prevent attaching to device stacks for
>> biometric devices? If not, are there any special considerations a driver
>> filtering/monitoring such devices must take into account?
>>
>> Thank you for any help or hint.
>>
>> Best regards
>> Martin Drab
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=PnP87VEUN%2Be0E3mPE%2BrUsCm7NJ%2FOyqrJzRi31QK%2FDj4%3D
>>
>> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=2%2BFWUo4k%2FNOthclf9HEoSTBf%2Fkq4oufX7kI4Zebramg%3D
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=z2TJlXNnsYPzDO%2BHJBvsnx1YJx146bh4rnnE8sciBqw%3D
>>
>> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|b7d7e1c39c814fd565cb08d2d9366dc1|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf488No%3D
>>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=dACpGUVoF5jdsaygO3duBB0k%2BqQHQnKVl0Zdo6cP40Y%3D
>
> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=ZfdDcQLqx9bVABvyedfoSb3eb4KUSjhuB968fR4RIMM%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=Jmv9qu%2FKdxRYYXwF0Oy1%2FsK8hQJ%2BFWQc4Z7fUJ2oMqA%3D
>
> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|5e9e4abfc69b4080481208d2d953c5be|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=SdbO1SdJgoB9uVi1j9O8zqBjf0mfS37pVILiquAl0Hc%3D
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
></https:></http:>

Attaching to a stack after it has started is not supported. This will especially mess with a umdf stack.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Martin Dr?b
Sent: Tuesday, October 20, 2015 7:03 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device

I am attaching two device objects to the stack:
* one to the PDO when it is reported a a bus relation by QDR IRP. This attach seems to cause no problems,
* one to the top of the stack when an IRP_MJ_START_DEVICE is sent (or a little bit later). This attach causes the problem.

Martin Dr?b

Dne 20. 10. 2015 v 15:50 Doron Holan napsal(a):
> How are you attaching to the stack? As a lower filter?
>
>
>
> Sent from Outlook
> Mailhttps:> o.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.Hol
> an%40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141
> af91ab2d7cd011db47%7c1&sdata=4tBi2Vi0W0WAGEbM3FgGS9df37g1vH1%2fbdc4AwD
> CBu4%3d> for Windows 10 phone
>
>
>
>
>
> From: Martin Dr?b
> Sent: Tuesday, October 20, 2015 6:38 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>
>
>
>
>
> Thanks for your reply.
>
> Actually, my expectations about filtering/monitoring stack of a
> biometric device are low and I am aware of the UMDF possibility.
> However, UMDF should not be the cause of my expereince, should it be?
> AFAIK some USB devices are also implemented in usermode (UMDF) and
> attaching to their device stacks does no harm to them.
>
> My driver should work on Windows XP SP2 and later versions.
>
> Best regards
> Martin Drab
>
> Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):
>> Depending on the os, bio loves in umdf or kernel. Could be your
>> filter doesn’t work with umdf
>>
>>
>>
>> Sent from Outlook
>> Mailhttps:>> go.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.H
>> olan%40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f
>> 141af91ab2d7cd011db47%7c1&sdata=dIMoInnZeKuYPJ4Bbrat02I%2fRyK5sVz2WeU
>> maU3Sq6M%3d> for Windows 10 phone
>>
>>
>>
>>
>>
>> From: Martin Dr?b
>> Sent: Tuesday, October 20, 2015 3:08 AM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>>
>>
>>
>>
>>
>> Hello,
>>
>> I am developing a kind of a general-purpose filter driver able to
>> monitor and/or filter requests comming to various kinds of devices
>> (USB, disks, COM/LPT ports etc.). I ran into problems with biometric device.
>> When I attach my device object to a device stack representing a
>> device belonging to the Biometric setup class, e.g. a fingerprint
>> reader, the system seems to be unable to find that device and use it
>> for the purpose of user logon.
>>
>> If I do not attach to such a device stack, everything works well. Are
>> there any restrictions that prevent attaching to device stacks for
>> biometric devices? If not, are there any special considerations a
>> driver filtering/monitoring such devices must take into account?
>>
>> Thank you for any help or hint.
>>
>> Best regards
>> Martin Drab
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>> sronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Hola
>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>> af91ab2d7cd011db47%7c1&sdata=PnP87VEUN%2be0E3mPE%2brUsCm7NJ%2fOyqrJzR
>> i31QK%2fDj4%3d
>>
>> OSR is HIRING!! See
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>> sr.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1c
>> 39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdat
>> a=2%2bFWUo4k%2fNOthclf9HEoSTBf%2fkq4oufX7kI4Zebramg%3d
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>> sr.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1
>> c39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sda
>> ta=z2TJlXNnsYPzDO%2bHJBvsnx1YJx146bh4rnnE8sciBqw%3d
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>> sronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Hola
>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>> af91ab2d7cd011db47%7c1&sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf48
>> 8No%3d
>>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
> 1ab2d7cd011db47%7c1&sdata=dACpGUVoF5jdsaygO3duBB0k%2bqQHQnKVl0Zdo6cP40
> Y%3d
>
> OSR is HIRING!! See
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abfc
> 69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Z
> fdDcQLqx9bVABvyedfoSb3eb4KUSjhuB968fR4RIMM%3d
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abf
> c69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
> Jmv9qu%2fKdxRYYXwF0Oy1%2fsK8hQJ%2bFWQc4Z7fUJ2oMqA%3d
>
> To unsubscribe, visit the List Server section of OSR Online at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
> 1ab2d7cd011db47%7c1&sdata=SdbO1SdJgoB9uVi1j9O8zqBjf0mfS37pVILiquAl0Hc%
> 3d
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
> 1ab2d7cd011db47%7c1&sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2fu0v
> c%3d
>
> OSR is HIRING!! See
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaaf
> 7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=u
> %2fwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3d
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaa
> f7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
> 23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3d
>
> To unsubscribe, visit the List Server section of OSR Online at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
> 1ab2d7cd011db47%7c1&sdata=1isYjn3yRASwGBCsp%2fmsU4qaTaeE7hc0NIdqDZA%2f
> DQE%3d
>


NTDEV is sponsored by OSR

Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2Fu0vc%3D

OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=u%2FwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3D

For our schedule of WDF, WDM, debugging and other seminars visit:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3D

To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1isYjn3yRASwGBCsp%2FmsU4qaTaeE7hc0NIdqDZA%2FDQE%3D</https:></https:>

Hello,

so, is it possible (supported) to attach to a device stack before it is
started (e.g. when an IRP_MN_START_DEVICE has been sent but the lowest
driver in the stack did not completed it yet)?

Martin Dráb

Dne 20. 10. 2015 v 21:07 Doron Holan napsal(a):

Attaching to a stack after it has started is not supported. This will especially mess with a umdf stack.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Martin Dráb
Sent: Tuesday, October 20, 2015 7:03 AM
To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>
> I am attaching two device objects to the stack:
> * one to the PDO when it is reported a a bus relation by QDR IRP. This attach seems to cause no problems,
> * one to the top of the stack when an IRP_MJ_START_DEVICE is sent (or a little bit later). This attach causes the problem.
>
> Martin Dráb
>
> Dne 20. 10. 2015 v 15:50 Doron Holan napsal(a):
>> How are you attaching to the stack? As a lower filter?
>>
>>
>>
>> Sent from Outlook
>> Mailhttps:>> o.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.Hol
>> an%40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141
>> af91ab2d7cd011db47%7c1&sdata=4tBi2Vi0W0WAGEbM3FgGS9df37g1vH1%2fbdc4AwD
>> CBu4%3d> for Windows 10 phone
>>
>>
>>
>>
>>
>> From: Martin Dráb
>> Sent: Tuesday, October 20, 2015 6:38 AM
>> To: Windows System Software Devs Interest List
>> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>>
>>
>>
>>
>>
>> Thanks for your reply.
>>
>> Actually, my expectations about filtering/monitoring stack of a
>> biometric device are low and I am aware of the UMDF possibility.
>> However, UMDF should not be the cause of my expereince, should it be?
>> AFAIK some USB devices are also implemented in usermode (UMDF) and
>> attaching to their device stacks does no harm to them.
>>
>> My driver should work on Windows XP SP2 and later versions.
>>
>> Best regards
>> Martin Drab
>>
>> Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):
>>> Depending on the os, bio loves in umdf or kernel. Could be your
>>> filter doesn’t work with umdf
>>>
>>>
>>>
>>> Sent from Outlook
>>> Mailhttps:>>> go.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.H
>>> olan%40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f
>>> 141af91ab2d7cd011db47%7c1&sdata=dIMoInnZeKuYPJ4Bbrat02I%2fRyK5sVz2WeU
>>> maU3Sq6M%3d> for Windows 10 phone
>>>
>>>
>>>
>>>
>>>
>>> From: Martin Dráb
>>> Sent: Tuesday, October 20, 2015 3:08 AM
>>> To: Windows System Software Devs Interest List
>>> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>>>
>>>
>>>
>>>
>>>
>>> Hello,
>>>
>>> I am developing a kind of a general-purpose filter driver able to
>>> monitor and/or filter requests comming to various kinds of devices
>>> (USB, disks, COM/LPT ports etc.). I ran into problems with biometric device.
>>> When I attach my device object to a device stack representing a
>>> device belonging to the Biometric setup class, e.g. a fingerprint
>>> reader, the system seems to be unable to find that device and use it
>>> for the purpose of user logon.
>>>
>>> If I do not attach to such a device stack, everything works well. Are
>>> there any restrictions that prevent attaching to device stacks for
>>> biometric devices? If not, are there any special considerations a
>>> driver filtering/monitoring such devices must take into account?
>>>
>>> Thank you for any help or hint.
>>>
>>> Best regards
>>> Martin Drab
>>>
>>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> Visit the list at:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>> sronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Hola
>>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>>> af91ab2d7cd011db47%7c1&sdata=PnP87VEUN%2be0E3mPE%2brUsCm7NJ%2fOyqrJzR
>>> i31QK%2fDj4%3d
>>>
>>> OSR is HIRING!! See
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>> sr.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1c
>>> 39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdat
>>> a=2%2bFWUo4k%2fNOthclf9HEoSTBf%2fkq4oufX7kI4Zebramg%3d
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>> sr.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1
>>> c39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sda
>>> ta=z2TJlXNnsYPzDO%2bHJBvsnx1YJx146bh4rnnE8sciBqw%3d
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>> sronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Hola
>>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>>> af91ab2d7cd011db47%7c1&sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf48
>>> 8No%3d
>>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
>> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
>> 1ab2d7cd011db47%7c1&sdata=dACpGUVoF5jdsaygO3duBB0k%2bqQHQnKVl0Zdo6cP40
>> Y%3d
>>
>> OSR is HIRING!! See
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abfc
>> 69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Z
>> fdDcQLqx9bVABvyedfoSb3eb4KUSjhuB968fR4RIMM%3d
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abf
>> c69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
>> Jmv9qu%2fKdxRYYXwF0Oy1%2fsK8hQJ%2bFWQc4Z7fUJ2oMqA%3d
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
>> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
>> 1ab2d7cd011db47%7c1&sdata=SdbO1SdJgoB9uVi1j9O8zqBjf0mfS37pVILiquAl0Hc%
>> 3d
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
>> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
>> 1ab2d7cd011db47%7c1&sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2fu0v
>> c%3d
>>
>> OSR is HIRING!! See
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaaf
>> 7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=u
>> %2fwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3d
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaa
>> f7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
>> 23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3d
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
>> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
>> 1ab2d7cd011db47%7c1&sdata=1isYjn3yRASwGBCsp%2fmsU4qaTaeE7hc0NIdqDZA%2f
>> DQE%3d
>>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2Fu0vc%3D
>
> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=u%2FwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3D
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3D
>
> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1isYjn3yRASwGBCsp%2FmsU4qaTaeE7hc0NIdqDZA%2FDQE%3D
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
></https:></https:>

> * one to the top of the stack when an IRP_MJ_START_DEVICE is sent (or a

little bit later). This attach causes the problem.

Surely this is an absolutely rude hack. You should not do so.

Instead, register your binary in Upper/LowerFilters, and attach a FiDO in AddDevice.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

PnP filters only attach in AddDevice, which is called by the kernel when the stack is built.

For the PnP filter to be loaded and AddDevice called, it must be registered in Upper/LowerFilters.

You cannot properly (in a supported way) attach filter to the existing PnP stack in any other way.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

“Martin Dr?b” wrote in message news:xxxxx@ntdev…
> Hello,
>
> so, is it possible (supported) to attach to a device stack before it is
> started (e.g. when an IRP_MN_START_DEVICE has been sent but the lowest
> driver in the stack did not completed it yet)?
>
> Martin Dr?b
>
> Dne 20. 10. 2015 v 21:07 Doron Holan napsal(a):
>> Attaching to a stack after it has started is not supported. This will especially mess with a umdf stack.
>>
>> d
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Martin Dr?b
>> Sent: Tuesday, October 20, 2015 7:03 AM
>> To: Windows System Software Devs Interest List
>> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>>
>> I am attaching two device objects to the stack:
>> * one to the PDO when it is reported a a bus relation by QDR IRP. This attach seems to cause no problems,
>> * one to the top of the stack when an IRP_MJ_START_DEVICE is sent (or a little bit later). This attach causes the problem.
>>
>> Martin Dr?b
>>
>> Dne 20. 10. 2015 v 15:50 Doron Holan napsal(a):
>>> How are you attaching to the stack? As a lower filter?
>>>
>>>
>>>
>>> Sent from Outlook
>>> Mailhttps:>>> o.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.Hol
>>> an%40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141
>>> af91ab2d7cd011db47%7c1&sdata=4tBi2Vi0W0WAGEbM3FgGS9df37g1vH1%2fbdc4AwD
>>> CBu4%3d> for Windows 10 phone
>>>
>>>
>>>
>>>
>>>
>>> From: Martin Dr?b
>>> Sent: Tuesday, October 20, 2015 6:38 AM
>>> To: Windows System Software Devs Interest List
>>> Subject: Re: [ntdev] Attaching to a Device Stack of a Biometric Device
>>>
>>>
>>>
>>>
>>>
>>> Thanks for your reply.
>>>
>>> Actually, my expectations about filtering/monitoring stack of a
>>> biometric device are low and I am aware of the UMDF possibility.
>>> However, UMDF should not be the cause of my expereince, should it be?
>>> AFAIK some USB devices are also implemented in usermode (UMDF) and
>>> attaching to their device stacks does no harm to them.
>>>
>>> My driver should work on Windows XP SP2 and later versions.
>>>
>>> Best regards
>>> Martin Drab
>>>
>>> Dne 20. 10. 2015 v 15:20 Doron Holan napsal(a):
>>>> Depending on the os, bio loves in umdf or kernel. Could be your
>>>> filter doesn’t work with umdf
>>>>
>>>>
>>>>
>>>> Sent from Outlook
>>>> Mailhttps:>>>> go.microsoft.com%2ffwlink%2f%3fLinkId%3d550987&data=01%7c01%7cDoron.H
>>>> olan%40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f
>>>> 141af91ab2d7cd011db47%7c1&sdata=dIMoInnZeKuYPJ4Bbrat02I%2fRyK5sVz2WeU
>>>> maU3Sq6M%3d> for Windows 10 phone
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> From: Martin Dr?b
>>>> Sent: Tuesday, October 20, 2015 3:08 AM
>>>> To: Windows System Software Devs Interest List
>>>> Subject: [ntdev] Attaching to a Device Stack of a Biometric Device
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Hello,
>>>>
>>>> I am developing a kind of a general-purpose filter driver able to
>>>> monitor and/or filter requests comming to various kinds of devices
>>>> (USB, disks, COM/LPT ports etc.). I ran into problems with biometric device.
>>>> When I attach my device object to a device stack representing a
>>>> device belonging to the Biometric setup class, e.g. a fingerprint
>>>> reader, the system seems to be unable to find that device and use it
>>>> for the purpose of user logon.
>>>>
>>>> If I do not attach to such a device stack, everything works well. Are
>>>> there any restrictions that prevent attaching to device stacks for
>>>> biometric devices? If not, are there any special considerations a
>>>> driver filtering/monitoring such devices must take into account?
>>>>
>>>> Thank you for any help or hint.
>>>>
>>>> Best regards
>>>> Martin Drab
>>>>
>>>>
>>>> —
>>>> NTDEV is sponsored by OSR
>>>>
>>>> Visit the list at:
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>>> sronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Hola
>>>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>>>> af91ab2d7cd011db47%7c1&sdata=PnP87VEUN%2be0E3mPE%2brUsCm7NJ%2fOyqrJzR
>>>> i31QK%2fDj4%3d
>>>>
>>>> OSR is HIRING!! See
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>>> sr.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1c
>>>> 39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdat
>>>> a=2%2bFWUo4k%2fNOthclf9HEoSTBf%2fkq4oufX7kI4Zebramg%3d
>>>>
>>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>>> sr.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7cb7d7e1
>>>> c39c814fd565cb08d2d9366dc1%7c72f988bf86f141af91ab2d7cd011db47%7c1&sda
>>>> ta=z2TJlXNnsYPzDO%2bHJBvsnx1YJx146bh4rnnE8sciBqw%3d
>>>>
>>>> To unsubscribe, visit the List Server section of OSR Online at
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.o
>>>> sronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Hola
>>>> n%40microsoft.com%7cb7d7e1c39c814fd565cb08d2d9366dc1%7c72f988bf86f141
>>>> af91ab2d7cd011db47%7c1&sdata=8AkizMJtM4S3tVErtHiQLBrhzN0XSCugYMn1wf48
>>>> 8No%3d
>>>>
>>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> Visit the list at:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
>>> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
>>> 1ab2d7cd011db47%7c1&sdata=dACpGUVoF5jdsaygO3duBB0k%2bqQHQnKVl0Zdo6cP40
>>> Y%3d
>>>
>>> OSR is HIRING!! See
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abfc
>>> 69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=Z
>>> fdDcQLqx9bVABvyedfoSb3eb4KUSjhuB968fR4RIMM%3d
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c5e9e4abf
>>> c69b4080481208d2d953c5be%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
>>> Jmv9qu%2fKdxRYYXwF0Oy1%2fsK8hQJ%2bFWQc4Z7fUJ2oMqA%3d
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
>>> 40microsoft.com%7c5e9e4abfc69b4080481208d2d953c5be%7c72f988bf86f141af9
>>> 1ab2d7cd011db47%7c1&sdata=SdbO1SdJgoB9uVi1j9O8zqBjf0mfS37pVILiquAl0Hc%
>>> 3d
>>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> Visit the list at:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> ronline.com%2fshowlists.cfm%3flist%3dntdev&data=01%7c01%7cDoron.Holan%
>>> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
>>> 1ab2d7cd011db47%7c1&sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2fu0v
>>> c%3d
>>>
>>> OSR is HIRING!! See
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> r.com%2fcareers&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaaf
>>> 7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=u
>>> %2fwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3d
>>>
>>> For our schedule of WDF, WDM, debugging and other seminars visit:
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> r.com%2fseminars&data=01%7c01%7cDoron.Holan%40microsoft.com%7c2ab0bbaa
>>> f7a6439be88908d2d9573b67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=
>>> 23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3d
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at
>>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.os
>>> ronline.com%2fpage.cfm%3fname%3dListServer&data=01%7c01%7cDoron.Holan%
>>> 40microsoft.com%7c2ab0bbaaf7a6439be88908d2d9573b67%7c72f988bf86f141af9
>>> 1ab2d7cd011db47%7c1&sdata=1isYjn3yRASwGBCsp%2fmsU4qaTaeE7hc0NIdqDZA%2f
>>> DQE%3d
>>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=a8FTq5ghvUpgNtyJsac2KOFuQ44wvZuJTt6qBS%2Fu0vc%3D
>>
>> OSR is HIRING!! See https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fcareers&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=u%2FwPwS6K6vaE38oL2EXqOeMPuJd1okF6sCJz7SP19Rc%3D
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=23HAiaSwuU1UGokXHXK3lgKYwEHFl8A10rONp00oS2Y%3D
>>
>> To unsubscribe, visit the List Server section of OSR Online at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=01|01|Doron.Holan%40microsoft.com|2ab0bbaaf7a6439be88908d2d9573b67|72f988bf86f141af91ab2d7cd011db47|1&amp;sdata=1isYjn3yRASwGBCsp%2FmsU4qaTaeE7hc0NIdqDZA%2FDQE%3D
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> 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
>>
></https:></https:>

Thank you very much for all the information.

Martin Dráb

Dne 21. 10. 2015 v 3:20 Maxim S. Shatskih napsal(a):

PnP filters only attach in AddDevice, which is called by the kernel when the stack is built.

For the PnP filter to be loaded and AddDevice called, it must be registered in Upper/LowerFilters.

You cannot properly (in a supported way) attach filter to the existing PnP stack in any other way.