Multiple filter instances at different filtering level

I want to use the driver say flt.sys (same image) as disk and volume filter at the same time.
AFAIK, there is no way to identify in DriverEntry, that it is called for disk/volume.

However, in Adddevice, we get lower device object whose DeviceType are
For disk device, it is FILE_DEVICE_DISK.
For volume device, it is FILE_DEVICE_VIRTUAL_DISK.

Can I rely on this to differentiate the lower device a volume/disk ?

Why do you need to know at add device time? What if you waited until you were being started?

d

debt from my phone


From: xxxxx@gmail.com
Sent: 10/9/2011 11:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Multiple filter instances at different filtering level

I want to use the driver say flt.sys (same image) as disk and volume filter at the same time.
AFAIK, there is no way to identify in DriverEntry, that it is called for disk/volume.

However, in Adddevice, we get lower device object whose DeviceType are
For disk device, it is FILE_DEVICE_DISK.
For volume device, it is FILE_DEVICE_VIRTUAL_DISK.

Can I rely on this to differentiate the lower device a volume/disk ?


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

>>Why do you need to know at add device time?
There is no reason as such. I thought of only this place for where I could differentiate.

>What if you waited until you were being started?
Sorry, I could not get it. Can you elaborate ?

>>What if you waited until you were being started?

Sorry, I could not get it. Can you elaborate ?

Can you make the differentiation when you are handling IRP_MN_START or in a KMDF driver, the first time EvtDevicePrepareHardware is being called?

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, October 10, 2011 12:16 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Multiple filter instances at different filtering level

>Why do you need to know at add device time?
There is no reason as such. I thought of only this place for where I could differentiate.

>What if you waited until you were being started?
Sorry, I could not get it. Can you elaborate ?


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 got what you were saying. But still could not get what differentiation I need to handle in EvtDevicePrepareHardware.

You don’t understand what to query for or what you queried for didn’t work?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, October 10, 2011 9:33 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Multiple filter instances at different filtering level

I got what you were saying. But still could not get what differentiation I need to handle in EvtDevicePrepareHardware.


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

It seems I have not put the question correctly.

Are you suggesting to perform device type differentiation in EvtDevicePrepareHardware and not in add device ?
I am confused and thinking that there is other differentiating factors like resource lists in prepare hardware which I am not aware of.

Please correct me if I am wrong.

Neither stack us assigned resources. Before you asked your first question, how were you planning on differentiating? The type of the pdo is not a good differentiator

d

debt from my phone


From: xxxxx@gmail.com
Sent: 10/10/2011 10:02 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Multiple filter instances at different filtering level

It seems I have not put the question correctly.

Are you suggesting to perform device type differentiation in EvtDevicePrepareHardware and not in add device ?
I am confused and thinking that there is other differentiating factors like resource lists in prepare hardware which I am not aware of.

Please correct me if I am wrong.


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