none
Multiple Filter Drivers? RRS feed

  • Question

  • Hello!

    As the description on MSDN for Filter Drivers (Windows Drivers)

    There can be any number of lower-level/upper-level filter drivers for a device.

    How should I do to edit my .INF for a device with multiple filter drivers? (In this case, the device has a lower-level filter driver already.)

    By the way,

    HKR,,"LowerFilters",0x00010008,"myfilter"

    "0x00010008" represents "FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND" ,

    I used these flags, but it didn't append "myfilter" to the key "LowerFilters" for my device.

    <Before>
    LowerFilters  REG_MULTI_SZ  orgfilter
    
    <After>
    LowerFilters  REG_MULTI_SZ  myfilter
    
    <Expect>
    LowerFilters  REG_MULTI_SZ  orgfilter myfilter

    If anyone has any idea, please help me. Thank you so much.

     

    Friday, February 22, 2013 3:33 AM

All replies

  • Post your entire inf. The reg directive you posted has to be referenced from a DDInstall.HW section in the inf

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by Doron Holan [MSFT] Friday, February 22, 2013 4:45 AM
    • Unmarked as answer by U.I.O Friday, February 22, 2013 5:26 AM
    Friday, February 22, 2013 4:45 AM
  • Dear Doron,

    My .INF format is as following.

    My device has a lower-level filter driver already, and I want to append another one to it.

    Should I use the argument "Include" to involve the .INF of the original?

    [Version]
    Signature="$Windows NT$"
    Class=DiskDrive
    ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}
    Provider=%MY%
    DriverVer=02/22/2013,1.00.0000.1
    
    [Manufacturer]
    %MY% = myfilter_device
    
    [DestinationDirs]
    myfilter_copyfiles=12
    
    [myfilter_copyfiles]
    myfilter.sys
    
    [myfilter_device]
    %MYDRIVE% = myfilter_install, USB\VID_...
    
    [myfilter_addreg]
    HKR,,"LowerFilters",0x00010008,"myfilter"
    
    [myfilter_install]
    CopyFiles=myfilter_copyfiles
    
    [myfilter_install.HW]
    AddReg=myfilter_addreg
    
    [myfilter_install.Services]
    AddService=myfilter,,myfilter_ServiceInstallSection
    
    [myfilter_ServiceInstallSection]
    DisplayName    = "My Filter Driver"
    ServiceType    = 1
    StartType      = 3
    ErrorControl   = 0
    ServiceBinary  = %12%\myfilter.sys
    
    [Strings]
    MY = "MY Filter Driver"
    MYDRIVE = "My Drive"



    • Edited by U.I.O Friday, February 22, 2013 5:28 AM
    Friday, February 22, 2013 5:25 AM