Hello my dear fellow wonderful DP members... I have a problem with an INF

Discussion in 'Programming' started by Jackuul, Nov 22, 2009.

  1. #1
    ...I need an INF file to work. I am not good at trying to fix INF files at all to be honest, and its just for a USB device (specifically a digital microscope). I ran the WDDK (Windows Driver Development Kit) to test the INF file with Chkinf, and it came back with about 6 errors and 14 warnings.

    I've tinkered, I've tankered, I've tried and tried... but nothing I do will make these blasted errors go away (simply because, well, I am not good at this or know exactly how to format INF files correctly). The reason? Well the device itself does not work (it refuses, and of course gives the Error 31 in the device manager).

    I need this scope to work so that I can take pictures of a few exuvium and examine them. I have no cash to give, but the inf file is quite small.


    Here is the code itself from the c2d.inf.

    I am specifically looking at the Win2K portion - as that also covers Windows XP

    [Version]
    Signature="$CHICAGO$"
    Class=IMAGE
    Provider = %CompanyName%
    LayoutFile=layout.inf
    DriverVer=08/28/2001
    
    [Manufacturer]
    %CompanyName% = DeviceList
                   
    [DeviceList]
    %ItemName%=DriverInstall,USB\VID_09F7&PID_0001
    
    [PreCopySection]
    HKR,,NoSetupUI,,1
    
    [DestinationDirs]
    _98_files = 11
    _nt_file_sys = 10,System32\Drivers
    _nt_file_inf = 10,INF
    
    ;=============================================================
    ; Windows 2000
    ;-------------------------------------------------------------
    [DriverInstall.nt]
    CopyFiles = _nt_file_sys, _nt_file_inf
    AddReg = _nt_Registry
    
    [DriverInstall.nt.Services]
    Addservice = BulkUsb, 0x00000002, BulkUsb.Service_Inst
    
    [_nt_Registry]
    HKR,,DevLoader,,*ntkern
    HKR,,NTMPDriver,,c2dwin2k.sys
    HKLM,"System\Currentcontrolset\Services\BulkUsb\Parameters","MaximumTransferSize",0x10001,4096
    HKLM,"System\Currentcontrolset\Services\BulkUsb\Parameters","DebugLevel",0x10001,2
    
    [BulkUsb.Service_Inst]
    DisplayName    = %SvrName%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 2                  ; SERVICE_AUTO_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %10%\System32\Drivers\c2dwin2k.sys
    LoadOrderGroup = Base
    
    [_nt_file_sys]
    c2dwin2k.sys
    
    [_nt_file_inf]
    c2d.inf
    
    ;=============================================================
    ; Windows 9x
    ;-------------------------------------------------------------
    [DriverInstall]
    CopyFiles = _98_files
    AddReg = _98_Registry
    UpdateInis = _98_Ini
    
    
    [_98_Registry]
    HKR,,DevLoader,,*ntkern
    HKR,,NTMPDriver,,c2dwin9x.sys
    
    [_98_files]
    EVC250KU.DRV
    EVC250KU.HLP
    EVCAM.DLL
    EVCOLOR.DLL
    EVTHUNK.DLL
    c2dwin9x.SYS
    
    [_98_Ini]
    system.ini,drivers,,"msvideo=evc250ku.drv"
    
    ;=============================================================
    ; Common strings
    ;-------------------------------------------------------------
    [Strings]
    CompanyName = "Science-Tech"
    BrandName   = "SCIENCE-TECH"
    ItemNumber  = "MS288"
    ItemName    = "C2D Digital Microscope"
    SvrName     = "Science-Tech C2D Device Driver"
    Code (markup):
     
    Jackuul, Nov 22, 2009 IP
  2. HowDoYou

    HowDoYou Well-Known Member

    Messages:
    443
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #2
    that reminds me of dr. Sues. you know.. like green eggs and ham...
     
    HowDoYou, Nov 22, 2009 IP
  3. Jackuul

    Jackuul Well-Known Member

    Messages:
    2,972
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    180
    #3
    I was going to say "I've tinkered and tankered, flinkered and flankered, whirled and twirled, and I've snerled and jereld". But then I saw how it looked.

    So, know anything about INF files?
     
    Jackuul, Nov 23, 2009 IP
  4. Jackuul

    Jackuul Well-Known Member

    Messages:
    2,972
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    180
    #4
    Please? Anyone? I needs teh helps (sic)!
     
    Jackuul, Nov 28, 2009 IP
  5. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Have a look at msdn.microsoft.com/en-us/library/aa741215(VS.85).aspx for a great guide.
    Also at msdn.microsoft.com/en-us/library/ms794791.aspx for a device specific guide.

    Hope this will help you.
     
    NeoCambell, Nov 28, 2009 IP