none
ChkInf error E22 on kmdf driver(s) (INF should add Wdf Driver: xxx as a service) RRS feed

  • Question

  • Hi All. I'm having several issues with an inf. The issue does not prevent installation but is chalking HCK. Can anyone provide a clue as to why chkinf is hating on my AddService sections? I've looked at several wdf samples and don't seem to be able to spot what I'm doing wrong.

    Thanks,

    ----------- INF -----------

    Summary of ".\MrBlobbyPCIeCustom.inf"
    Total Errors:2
    Total Warnings:2
    Errors:
    Line 55: (E22.1.1501) INF should add Wdf Driver: DRIVERINSTALL as a service
    Line 104: (E22.1.1501) INF should add Wdf Driver: SWROOTINSTALL as a service
    Warnings:
    Line 0: (W22.1.2212) No Copyright information found.
    Line 13: (W22.1.2215) Class Mr. Blobby's Funhouse (ClassGUID {C8B76578-D062-4834-A701-F8B6F2162A22}) is unrecognized. 
    Annotated INF:
    ; (W22.1.2212) No Copyright information found. 
    ;------------------------------------------------------------------------------
    ;
    ;  Mr. Blobby's Funhouse - Custom device class installation file
    ;
    ;  Version    :  4.3.0.2
    ;  Last Update:  Feb 12 14:11:16 2015
    ;
    ;------------------------------------------------------------------------------
    [Version]
    Signature="$WINDOWS NT$"
    Class="Mr. Blobby's Funhouse"
    ; (W22.1.2215) Class Mr. Blobby's Funhouse (ClassGUID {C8B76578-D062-4834-A701-F8B6F2162A22}) is unrecognized. 
    ClassGuid={C8B76578-D062-4834-A701-F8B6F2162A22}
    Provider=%MFGNAME%
    CatalogFile=MrBlobbyPCIe.cat
    DriverVer=02/12/2015,6.3.9600.17307
    [Manufacturer]
    %MFGNAME%=DeviceList, NTamd64
    [DeviceList.NTamd64]
    %DESCRIPTION_DEVICE_2%=DriverInstall,PCI\VEN_1CB5&DEV_0002
    %DESCRIPTION_PRODUCT_LINE_ROOT%=SwRootInstall, ROOT\MrBlobbyPCIe
    [SourceDisksFiles]
    MrBlobbyPCIe.sys = 1
    MrBlobbyPCIeSwRoot.sys = 1
    WdfCoInstaller01011.dll=1
    [SourceDisksNames]
    1 = %DESCRIPTION_PRODUCT_LINE%
    [DestinationDirs]
    DriverCopyFiles = 10,system32\drivers
    SwRootCopyFiles = 10,system32\drivers
    WdfCoInstall_CopyFiles = 10,system32\drivers
    [ClassInstall32]
    Addreg=MrBlobbyClassReg
    [MrBlobbyClassReg]
    HKR,,,0,%ClassName%
    HKR,,Icon,,-5
    HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGWGX;;;WD)"      ; Allow generic-all access to Built-in administrators and Local system, allow read write execute access to everyone
    ;------------------------------------------------------------------------------
    ;  Windows 2000 Sections: Mr. Blobby's Funhouse
    ;------------------------------------------------------------------------------
    [DriverInstall.NT]
    CopyFiles=DriverCopyFiles
    [DriverInstall.NT.Services]
    ; (E22.1.1501) INF should add Wdf Driver: DRIVERINSTALL as a service  
    Addservice = MrBlobbyPCIe, 0x00000002, DriverInstall_AddService
    [DriverInstall_AddService]
    DisplayName    = %DESCRIPTION_PRODUCT_LINE%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 3                  ; SERVICE_DEMAND_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %12%\MrBlobbyPCIe.sys
    AddReg = SRLimitAddReg
    [DriverCopyFiles]
    MrBlobbyPCIe.sys
    MrBlobbyPCIeSwRoot.sys
    [DriverInstall.NT.hw]
    AddReg=DriverHwAddReg
    [DriverHwAddReg]
    HKR,,FriendlyName,,%DESCRIPTION_PRODUCT_LINE%
    HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
    HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGWGX;;;WD)"      ; Allow generic-all access to Built-in administrators and Local system, allow read write execute access to everyone
    HKR,Interrupt Management,,0x00000010
    HKR,Interrupt Management\MessageSignaledInterruptProperties,,0x00000010
    HKR,Interrupt Management\MessageSignaledInterruptProperties,MSISupported,0x00010001,1
    [SRLimitAddReg]
    HKR,,Available Blobbing Rates,0x00010001,0x10ff007f
    [DriverInstall.NT.CoInstallers]
    AddReg=WdfCoInstall_AddReg
    CopyFiles=WdfCoInstall_CopyFiles
    [DriverInstall.NT.Wdf]
    KmdfService = DriverInstall, WdfCoInstall_Ver
    ;------------------------------------------------------------------------------
    ;  Windows XP+ Sections: Mr. Blobby's Funhouse SWROOT
    ;------------------------------------------------------------------------------
    [SwRootInstall.NT]
    CopyFiles=SwRootCopyFiles
    AddReg=SwRootInstall.AddReg
    [SwRootInstall.AddReg]
    HKR,,FriendlyName,,%DESCRIPTION_PRODUCT_LINE_ROOT%
    HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
    HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGWGX;;;WD)"      ; Allow generic-all access to Built-in administrators and Local system, allow read write execute access to everyone
    [SwRootInstall.NT.Services]
    ; (E22.1.1501) INF should add Wdf Driver: SWROOTINSTALL as a service  
    AddService = MrBlobbyPCIeSwRoot, 0x00000002, SwRootInstall_AddService
    [SwRootInstall_AddService]
    DisplayName    = %DESCRIPTION_PRODUCT_LINE_ROOT%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 3                  ; SERVICE_DEMAND_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  =  %12%\MrBlobbyPCIeSwRoot.sys
    LoadOrderGroup = Extended Base
    [SwRootCopyFiles]
    MrBlobbyPCIeSwRoot.sys
    [SwRootInstall.NT.CoInstallers]
    AddReg=WdfCoInstall_AddReg
    CopyFiles=WdfCoInstall_CopyFiles
    [SwRootInstall.NT.Wdf]
    KmdfService = SwRootInstall, WdfCoInstall_Ver
    ;------------------------------------------------------------------------------
    ;  Windows WDF CoInstaller Section
    ;------------------------------------------------------------------------------
    [WdfCoInstall_AddReg]
    HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01011.dll,WdfCoInstaller"
    [WdfCoInstall_CopyFiles]
    WdfCoInstaller01011.dll
    [WdfCoInstall_Ver]
    KmdfLibraryVersion = 1.11
    ;------------------------------------------------------------------------------
    ;  String Definitions
    ;------------------------------------------------------------------------------
    [Strings]
    MFGNAME = "Awesome Technologies"
    DESCRIPTION_DEVICE_1 = "Super double secret Evaluation Board"
    DESCRIPTION_DEVICE_2 = "Super triple secret Awesome widget"
    DESCRIPTION_PRODUCT_LINE = "Mr. Blobby's Funhouse"
    DESCRIPTION_PRODUCT_LINE_ROOT = "Mr. Blobby's Funhouse Controller"
    ClassName = "Mr. Blobby's Funhouse"


    Tuesday, March 3, 2015 1:23 PM

All replies

  • Make your naming consistent to fix the errors from ChkInf, fix the warning about the copyright at the same time.  Even though things "work" if anyone else ever picks up this INF, or if you put it aside long enough and then pick it up, you will find it painful to work with, so make it better for everyone.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com

    Tuesday, March 3, 2015 1:29 PM
  • Hi Don.  Thanks very much for the quick response.  I've changed the names around quite a bit for silly, propriety-related reasons.  That being said, can you provide an example of how I might address what you're suggesting?

    Tuesday, March 3, 2015 1:37 PM
  • Don, when you said "Make your naming consistent to fix the errors from ChkInf..." are you implying that naming is the cause of the error?  I've tried renaming sections and it made no difference.
    • Edited by Wade_Dawson Wednesday, March 4, 2015 12:09 PM
    Wednesday, March 4, 2015 12:09 PM