I'm working on a class upper filter driver for Image class. I need to
do some operations after my filter driver has installed. I just want
to know is there any way to write a CoInstaller for a class filter
driver? Or, there is no concept of CoInstaller for a class filter
driver?

Re: CoInstaller for class upper filter driver by Doron

Doron
Tue Dec 11 16:45:40 PST 2007

you can register your coinstaller as a class coinstaller, but be warned it
will be invoked for every device that is installed in the class which means
you need to be very very careful about what you do in it since it can take
down the entire class.

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.


<leafbanana@163.com> wrote in message
news:64d3036a-be63-4c06-b297-d9655c782a80@e10g2000prf.googlegroups.com...
> I'm working on a class upper filter driver for Image class. I need to
> do some operations after my filter driver has installed. I just want
> to know is there any way to write a CoInstaller for a class filter
> driver? Or, there is no concept of CoInstaller for a class filter
> driver?


Re: CoInstaller for class upper filter driver by leafbanana

leafbanana
Tue Dec 11 23:30:03 PST 2007

Thanks for your reply!

More detail. What I need is to do a little change to "UpperFilters"
entry in Image class, only after installing my filter driver. As you
know, in 64bit WinXp & WinVista, there is a system-supplied class
upper filter in Image class, which names ksthunk. I found my filter
driver must be in front of it to make sure they will work properly.
But for INF file could only indicate FLG_ADDREG_APPEND. So I should
change the position of these 2 filter drivers after installing my
filter driver. This operation only need once. But CoInstaller works
everytime that device installation. Do you think CoInstaller is not
the best way for doing this?

In addition, if you know any thing about ksthunk please let me know.
Is there someway that can make them work properly, but no need to
change the position in registry?

Re: CoInstaller for class upper filter driver by Maxim

Maxim
Wed Dec 12 03:06:41 PST 2007

Coinstaller is OK for this. In the coinstaller, just check the device to be
"yours", and, if so, patch the registry value.

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

<leafbanana@163.com> wrote in message
news:18b78621-2952-46c5-b714-4af2bb5b62c1@d21g2000prf.googlegroups.com...
> Thanks for your reply!
>
> More detail. What I need is to do a little change to "UpperFilters"
> entry in Image class, only after installing my filter driver. As you
> know, in 64bit WinXp & WinVista, there is a system-supplied class
> upper filter in Image class, which names ksthunk. I found my filter
> driver must be in front of it to make sure they will work properly.
> But for INF file could only indicate FLG_ADDREG_APPEND. So I should
> change the position of these 2 filter drivers after installing my
> filter driver. This operation only need once. But CoInstaller works
> everytime that device installation. Do you think CoInstaller is not
> the best way for doing this?
>
> In addition, if you know any thing about ksthunk please let me know.
> Is there someway that can make them work properly, but no need to
> change the position in registry?