none
Using inf install hid upper filter driver, but yellow mark RRS feed

  • Question

  • Dear all:

    I write a inf for install hid upper filter driver(above hidclass.sys).

    This filter driver is for touch device. And I installed it using devcon.exe

    After installation, The device manager show yellow mark and the error is 38

    My inf show as below:

    [Version]
    Signature = "$CHICAGO$"
    Class = HIDClass
    ClassGuid = {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
    Provider = %Firefly%
    DriverVer = 12/14/2012,7.2.52.00

    [SourceDisksFiles]
    firefly.sys = 99

    [SourceDisksNames]
    99 = %DISK_NAME%,,,""

    [DestinationDirs]
    CopyFunctionDriver = 12      
         
    [Manufacturer]
    %Firefly% = Firefly_USB, NTAMD64.6.1


    [Firefly_USB.NTAMD64.6.1]

    %Fireflyhidusb% = Fireflyhidusb.Inst.Win7, HID\VID_0457&PID_1034&COL01


    [Fireflyhidusb.Inst.Win7.NT]
    Include = input.inf
    Need = HID_Inst.NT
    CopyFiles = CopyFunctionDriver


    [Fireflyhidusb.Inst.Win7.NT.HW]
    Include = input.inf
    Need = HID_Inst.NT.HW
    AddReg = Fireflyhidusb_Win7_Parameters.AddReg 


    [Fireflyhidusb.Inst.Win7.NT.Services]
    Include = input.inf
    Need = HID_Inst.NT.Services
    AddService = firefly,0x00000002, fireflyhidusb_Service_Inst


    [Fireflyhidusb_Win7_Parameters.AddReg]
    HKR,,"UpperFilters", 0x00010000, "firefly" 


    [CopyFunctionDriver]
    firefly.sys


    [Fireflyhidusb_Service_Inst]
    DisplayName    = %fireflyhidusb%
    ServiceType    = %SERVICE_KERNEL_DRIVER% 
    StartType      = %SERVICE_DEMAND_START% 
    ErrorControl   = %SERVICE_ERROR_IGNORE% 
    ServiceBinary  = %12%\firefly.sys


    [DestinationDirs]
    Fireflyhidusb.Inst_CoInstaller_CopyFiles = 11


    [fireflyhidusb.Inst.NT.CoInstallers]
    AddReg=Fireflyhidusb.Inst_CoInstaller_AddReg
    CopyFiles=Fireflyhidusb.Inst_CoInstaller_CopyFiles


    [fireflyhidusb.Inst_CoInstaller_AddReg]
    HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"


    [fireflyhidusb.Inst_CoInstaller_CopyFiles]
    WdfCoInstaller01009.dll,,,0x00000010    ;COPYFLG_NO_OVERWRITE (for win2k)


    [SourceDisksFiles]
    WdfCoInstaller01009.dll=99 ; make sure the number matches with SourceDisksNames


    [fireflyhidusb.Inst.NT.Wdf]
    KmdfService = fireflyhidusb, fireflyhidusb_wdfsect


    [fireflyhidusb_wdfsect]
    KmdfLibraryVersion = 1.9


    [Strings]
     

    Firefly         = "Firefly" 
    Fireflyhidusb       = "Firefly Filter Driver On USB" 
    hidusb       = "Firefly on USB" 
    PanelCollection = "Firefly Collection for HID USB By VICTOR"
    DISK_NAME      = "Firefly USB Device"


    SERVICE_BOOT_START     = 0x0 
    SERVICE_SYSTEM_START   = 0x1 
    SERVICE_AUTO_START     = 0x2 
    SERVICE_DEMAND_START   = 0x3 
    SERVICE_DISABLED       = 0x4 

    SERVICE_KERNEL_DRIVER  = 0x1 
    SERVICE_ERROR_IGNORE   = 0x0 
    SERVICE_ERROR_NORMAL   = 0x1 
    SERVICE_ERROR_SEVERE   = 0x2 
    SERVICE_ERROR_CRITICAL = 0x3 

    REG_EXPAND_SZ          = 0x00020000 
    REG_DWORD              = 0x00010001 
    REG_MULTI_SZ           = 0x00010000
    REG_BINARY             = 0x00000001
    REG_SZ                 = 0x00000000





    1.Is my inf right or lost something?

    best regards,
    Victor



    Monday, October 24, 2016 7:18 AM

Answers

  • https://support.microsoft.com/en-us/kb/310123#bookmark-38

    Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 38)

    what does setupapi.dev.log say?

    

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

    Monday, October 24, 2016 4:12 PM
  • That is controlled by the hardware ID you match against. By matching against HID\VID_0457&PID_1034&COL01 you will filter above the hid enumerated pdo

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

    Thursday, October 27, 2016 7:08 PM

All replies

  • https://support.microsoft.com/en-us/kb/310123#bookmark-38

    Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 38)

    what does setupapi.dev.log say?

    

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

    Monday, October 24, 2016 4:12 PM
  • Hi Doron:

    I'm very sorry, a part of my inf is error.

    I correct it, and the driver loaded success without yellow mark.

    I have a question to ask, could you help me?

    1. The inf only set the driver is a upper filter driver, but not a upper filter driver of hidclass.sys. 

         How to check the driver is the upper filter driver of hidclass.sys?

    best regard,

    Victor


    Thursday, October 27, 2016 5:32 AM
  • That is controlled by the hardware ID you match against. By matching against HID\VID_0457&PID_1034&COL01 you will filter above the hid enumerated pdo

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

    Thursday, October 27, 2016 7:08 PM