CoInstaller for class upper filter driver

Discussion in 'Windows Vista Drivers' started by leafbanana, Dec 11, 2007.

  1. leafbanana

    leafbanana Guest

    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
    leafbanana, Dec 11, 2007
    1. Advertisements

  2. 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.

    Doron Holan [MSFT], Dec 12, 2007
    1. Advertisements

  3. leafbanana

    leafbanana Guest

    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?
    leafbanana, Dec 12, 2007
  4. Coinstaller is OK for this. In the coinstaller, just check the device to be
    "yours", and, if so, patch the registry value.
    Maxim S. Shatskih, Dec 12, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.