none
How to use Win10 HLK to test the filter driver? RRS feed

  • 常规讨论

  • Hi guys,

    My filter driver want to pass the Win10 HLK test and ran into a problem:

    My filter driver could not be found in the HLK because there is no specific device in Device Manager。

    Should I need to modify the driver .INF file?

    CODE: https://github.com/OSRDrivers/GenFilter

    INF:

    [Version]
    Signature   = "$Windows NT$"
    Class       = %ClassNameToFilter%   ; Be sure the class NAME and ... 
    ClassGUID   = %ClassGUIDToFilter%   ; ... the class GUID agree.
    Provider    = %Provider%
    DriverVer   = 
    CatalogFile = GenFilter.cat
    PnpLockdown=1
    ;
    ; General installation section
    ;

    [DefaultInstall.NT]
    CopyFiles = @GenFilter.sys
    Addreg    = GenFilter.AddReg

    [DestinationDirs]
    DefaultDestDir = 12

    [GenFilter.AddReg]
    HKLM, System\CurrentControlSet\Control\Class\{745A17A0-74D3-11D0-B6FE-00A0C90F57DA}, UpperFilters, 0x00010008, %DriverName%      ; HIDClass
    ;
    ; Service installation section
    ;

    [DefaultInstall.NT.Services]
    AddService = GenFilter, , GenFilter.Service.Install

    [GenFilter.Service.Install]
    DisplayName      = %ServiceName%
    Description      = %ServiceDescription%
    ServiceBinary    = %12%\%DriverName%.sys        ;%windir%\system32\drivers\
    ServiceType      = 1                            ;SERVICE_KERNEL_DRIVER
    StartType        = 0                            ;SERVICE_BOOT_START 
    ErrorControl     = 1                            ;SERVICE_ERROR_NORMAL
    AddReg           = KMDFVerifierAddReg


    [KMDFVerifierAddReg]
    HKR, Parameters\Wdf,VerifierOn,0x00010001,1
    HKR, Parameters\Wdf,VerboseOn,0x00010001,1
    HKR, Parameters\Wdf,DbgBreakOnError,0x00010001,1


    [SourceDisksFiles]
    GenFilter.sys=1

    [SourceDisksNames]
    1 = %DiskId1%

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.


    2021年7月8日 6:52

全部回复

  • 修改INF文件为HID device filter driver,参考Firefly的INF文件写法。

    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2021年7月27日 2:02