Tech Support > Microsoft Windows > Drivers > Filter & Hooking in the same driver
Filter & Hooking in the same driver
Posted by Omer on June 8th, 2005


Hi

Let's say i have a filter driver for CDROM class that also uses
dispatch table hooking (like hooking ZwCreateFile).
Except that in general, hooking is not recommended, should i expect
special problems because the same driver filters and hooks in the same
time ?

Should i split the driver into 2 drivers - one for filtering and one fr
hooking ?

Thanks.

Posted by Maxim S. Shatskih on June 8th, 2005


At least forget about unloading the hooker. Just do not implement the
unload routine in it.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Omer" <Omerb99@gmail.com> wrote in message
news:1118229215.007420.135960@z14g2000cwz.googlegr oups.com...


Posted by Omer on June 9th, 2005


The same driver can have devices that are inside other device stacks
and used for filtering and also "regular" deices in the same time ?

Posted by Doron Holan [MS] on June 9th, 2005


a hooking driver can't unload. if you can deal with the fact that your
filter driver will never updated w/out a reboot, there is no reason they
can't coexist. unless they are talking to each other alot, i would
personally separate them out.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Omer" <Omerb99@gmail.com> wrote in message
news:1118306411.948289.143540@f14g2000cwb.googlegr oups.com...



Similar Posts