Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Both an upper and lower filter driver

1 view
Skip to first unread message

rjones872

unread,
Oct 7, 2009, 4:59:47 PM10/7/09
to
If I want my single filter driver to be both an upper and lower class
filter driver, my AddDevice routine is called twice (once for the
lower filter, the second for the upper filter). What is the preferred
way in my driver to know when it attaches to the device stack, that my
device object is a lower class filter object or an upper class filter
object? Thanks.

Maxim S. Shatskih

unread,
Oct 7, 2009, 5:41:50 PM10/7/09
to
Addref the current top-of-stack (IoGetAttachedDeviceReference), then traverse the attachment chain from PDO up, and look at ->DriverObject values.

Then deref back.

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

"rjones872" <rjon...@gmail.com> wrote in message news:6a328cf7-f8bd-4f37...@13g2000prl.googlegroups.com...

0 new messages