see NTDEV forum thread 103378
Hello,
I am still learning about .inf files & loading drivers.
My current project will probably never see the light of day outside our hallowed halls since it’s a QC device
but we have products in R&D as well they now use drivers from a third party vender we may switch to WinUsb if this works for my project.
My problem is that I have already managed to mount WinUsb on my machine but not the wdf/wudf stuff
from what I can tell that was only needed for HID support which I don’t need anyway or at least the more I see the less it looks like I do.
at this point I do not need a full-blown install I just want to tie my device to WinUsb & setup a testbed to try-out the drivers.
My current problem is that the device loads but for some reason the driver fails to attach!
my latest error message said the .inf was missing an entry [but not a section!], the inf I am using looks something like this:
; Very Experimental copy By Douglas B. Boenke @ Xitron.LLC
;=================== Version section ====================
[Version]
Signature=“$Windows NT$” ; no multi platform stuff yet !
Class=USB ; pre-defined class “USB” & it’s GUID.
ClassGUID={36FC9E60-C465-11CF-8056-444553540000} ;
DriverVer=02/09/2007,1.0.0.0 ; not using this yet added to stop inftest from whining about it.
Provider=ManufacturerName ; your [company] name here ?
;========== Manufacturer/Models sections ===========
;---- define company name & create an alias ----
[Manufacturer]
%ManufacturerName%=devicename
;---- models section ( only one for now ) ----
[devicename]
%PrtEmm.DeviceDesc%=MyUsbPrj, USB\VID_xxxx&PID_xxxx
;=================== Install section =======================
[MyUsbPrj]
Include = winusb.inf
Needs = WINUSB.NT
AddReg = MyUsbPrj.AddReg
[MyUsbPrj.Services]
AddService = WinUSB, 0x000001f8, MyUsbPrj.AddService
;---- define the one and only install disk ( ok install folder then ) ----
[SourceDisksNames]
1 = %OurUsbInst%
;---- declare the co-installer .dll files ----
[SourceDisksFiles]
WinUSBCoInstaller.dll = 1
[MyUsbPrj.AddService]
DisplayName = %MyWinUsb.SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\WinUSB.sys
AddReg = MyUsbPrj.AddReg
LoadOrderGroup = Base
[MyUsbPrj.AddReg]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,WinUSB.sys
; [MyUsbPrj.AddReg.Guid]
HKR,DriverGUID,%MyUsbPrj.GUID%
[MyUsbPrj.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles,
[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WinUSBCoInstaller.dll”
[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
;=================== Strings ===================
[Strings]
ManufacturerName =“Manufacturer”
PrtEmm.DeviceDesc=“device description here”
MyWinUsb.SvcDesc=“WinUSB driver”
OurUsbInst=“Manufacturer USB Install”
MyUsbPrj.GUID=“{YOUR_GUID_HERE}”
I have a few pieces of log file from my last install attempt
THIS SEEMS TO LOOK OK
------------------------------ FROM WINUSB_UPDATE.LOG -------------------------------------------
0.031: ================================================================================
0.031: 2007/02/15 10:03:46.081 (local)
0.031: c:\0cd478645d8313538720fa32a5\update\update.exe (version 6.3.4.0)
0.031: Hotfix started with following command line: /quiet /ER /log:C:\WINDOWS\temp\winusb_update.log
0.031: In Function GetBuildType, line 1170, RegQueryValueEx failed with error 0x2
0.141: In Function TestVolatileFlag, line 12013, RegOpenKeyEx failed with error 0x2
0.141: In Function TestVolatileFlag, line 12045, RegOpenKeyEx failed with error 0x2
0.141: ---- Old Information In The Registry ------
0.141: Source:c:\007f23e7a3b1212705\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\007f23e7a3b1212705\update
0.141: Destination:
0.141: Source:c:\007f23e7a3b1212705
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\updspapi.dll (6.3.4.0)
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7\update
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7
0.141: Destination:
0.141: ---- New Information In The Registry ------
0.141: Source:c:\007f23e7a3b1212705\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\007f23e7a3b1212705\update
0.141: Destination:
0.141: Source:c:\007f23e7a3b1212705
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\updspapi.dll (6.3.4.0)
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update
0.141: Destination:
0.141: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7\update\update.exe (6.3.4.0)
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7\update
0.141: Destination:
0.141: Source:c:\69852a20cb48805dbdd7
0.141: Destination:
0.156: In Function GetBuildType, line 1170, RegQueryValueEx failed with error 0x2
0.156: SetProductTypes: InfProductBuildType=BuildType.IP
0.156: SetAltOsLoaderPath: No section uses DirId 65701; done.
0.156: DoInstallation: FetchSourceURL for c:\0cd478645d8313538720fa32a5\update\update_XP.inf failed
0.156: CreateUninstall = 0,Directory = C:\WINDOWS$NtUninstallwinusb0100$
0.156: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
0.156: BuildCabinetManifest: update.url absent
0.156: Starting AnalyzeComponents
0.156: AnalyzePhaseZero used 0 ticks
0.156: No c:\windows\INF\updtblk.inf file.
0.156: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
0.156: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
3.266: C:\WINDOWS\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oem7.CAT trusts inf c:\windows\inf\oem7.inf of device NVAX\NFORCE_VAD\4&212292CD&0&0000
3.766: C:\WINDOWS\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oem2.CAT trusts inf c:\windows\inf\oem2.inf of device PCI\VEN_10DE&DEV_0052&SUBSYS_815A1043&REV_A2\3&2411E6FE&0&09
5.250: C:\WINDOWS\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\oem1.CAT trusts inf c:\windows\inf\oem1.inf of device PCI\VEN_10DE&DEV_005E&SUBSYS_815A1043&REV_A3\3&2411E6FE&0&00
6.062: Failed to query DriverPath of ROOT\LEGACY_AFD\0000 0x2
6.062: Failed to query DriverPath of ROOT\LEGACY_BEEP\0000 0x2
6.062: Failed to query DriverPath of ROOT\LEGACY_DMBOOT\0000 0x2
6.062: Failed to query DriverPath of ROOT\LEGACY_DMLOAD\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_EECTRL\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_ERASERUTILREBOOTDRV\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_FIPS\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_GPC\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_HARDLOCK\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_HASPNT\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_HTTP\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_IPNAT\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_IPSEC\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_ISPDEV\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_KSECDD\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_MNMDD\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_MODEM\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_MOUNTMGR\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NAVENG\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NAVEX15\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NDIS\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NDISTAPI\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NDISUIO\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NDPROXY\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NETBT\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NM\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NPF\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_NULL\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_PACJTAG\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_PARTMGR\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_PARVDM\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_RASACD\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_RDPCDD\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SAVRT\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SAVRTPEL\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SENTINEL\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SPBBCDRV\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SYMEVENT\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SYMREDRV\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_SYMTDI\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_TCPIP\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_VGASAVE\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_VOLSNAP\0000 0x2
6.078: Failed to query DriverPath of ROOT\LEGACY_WANARP\0000 0x2
8.031: SetupVerifyInfFile failed with error 0x490 for oem13.inf of device USB\VID_04B4&PID_0082\5&3A8FFAE1&0&2
8.062: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\oem13.inf of device USB\VID_04B4&PID_0082\5&3A8FFAE1&0&2
8.078: SetupVerifyInfFile failed with error 0x490 for cymonpre.inf of device USB\VID_04B4&PID_0082\5&3A8FFAE1&0&9
8.094: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\cymonpre.inf of device USB\VID_04B4&PID_0082\5&3A8FFAE1&0&9
8.094: SetupVerifyInfFile failed with error 0x490 for oem17.inf of device USB\VID_04B4&PID_1004\5&3A8FFAE1&0&10
8.109: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\oem17.inf of device USB\VID_04B4&PID_1004\5&3A8FFAE1&0&10
8.109: SetupVerifyInfFile failed with error 0x490 for cyusbpre.inf of device USB\VID_04B4&PID_1004\5&3A8FFAE1&0&9
8.141: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\cyusbpre.inf of device USB\VID_04B4&PID_1004\5&3A8FFAE1&0&9
8.141: SetupVerifyInfFile failed with error 0x490 for oem17.inf of device USB\VID_04B4&PID_8613\5&3A8FFAE1&0&10
8.156: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\oem17.inf of device USB\VID_04B4&PID_8613\5&3A8FFAE1&0&10
8.156: Failed to query DriverPath of USB\VID_04B4&PID_8613\5&3A8FFAE1&0&2 0x2
8.156: SetupVerifyInfFile failed with error 0x490 for oem15.inf of device USB\VID_04B4&PID_8613\5&3A8FFAE1&0&9
8.281: SetupVerifyInfFile failed with error 0x490 for aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&1
8.391: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&1
8.391: SetupVerifyInfFile failed with error 0x490 for aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&10
8.500: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&10
8.500: SetupVerifyInfFile failed with error 0x490 for aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&2
8.594: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\aksusb.inf of device USB\VID_0529&PID_0001\5&36C701F9&0&2
8.609: SetupVerifyInfFile failed with error 0x490 for ezusbw2k.inf of device USB\VID_0547&PID_1002\5&3A8FFAE1&0&2
8.703: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\ezusbw2k.inf of device USB\VID_0547&PID_1002\5&3A8FFAE1&0&2
8.719: SetupVerifyInfFile failed with error 0x490 for ezusbw2k.inf of device USB\VID_0547&PID_1002\5&3A8FFAE1&0&9
8.812: SetupVerifyInfFile failed with error 0x490 for c:\windows\inf\ezusbw2k.inf of device USB\VID_0547&PID_1002\5&3A8FFAE1&0&9
8.984: SetupVerifyInfFile failed with error 0x490 for oem23.inf of device USB\MyVid&PID_0108\5&3A8FFAE1&0&10
9.000: SetupVerifyInfFile failed with error 0x490 for oem15.inf of device USB\MyVid&PID_A6FA\5&36C701F9&0&9
9.031: SetupVerifyInfFile failed with error 0x490 for oem15.inf of device USB\MyVid&PID_A6FA\5&3A8FFAE1&0&10
9.047: SetupVerifyInfFile failed with error 0x490 for oem15.inf of device USB\MyVid&PID_A6FA\5&3A8FFAE1&0&9
9.078: Failed to query DriverPath of USB\MyVid&MyPid\5&3A8FFAE1&0&9 0x2
9.781: OEM file scan used 9625 ticks
9.797: AnalyzePhaseOne: used 9641 ticks
9.797: AnalyzeComponents: Hotpatch analysis disabled; skipping.
9.797: AnalyzeComponents: Hotpatching is disabled.
9.797: AnalyzePhaseTwo used 0 ticks
9.797: AnalyzePhaseThree used 0 ticks
9.797: AnalyzePhaseFive used 0 ticks
9.797: AnalyzePhaseSix used 0 ticks
9.797: AnalyzeComponents used 9641 ticks
9.797: Downloading 0 files
9.797: bPatchMode = FALSE
9.797: Inventory complete: ReturnStatus=0, 9641 ticks
9.797: Num Ticks for invent : 9641
9.797: Allocation size of drive C: is 4096 bytes, free space = 289126113280 bytes
9.797: Drive C: free 275732MB req: 5MB w/uninstall 0MB
9.797: CabinetBuild complete
9.797: Num Ticks for Cabinet build : 0
9.797: DynamicStrings section not defined or empty.
9.797: FileInUse:: Added to Filelist: c:\windows\winusb0100.cat
9.844: FileInUse:: PrintTasksUsingModule: No tasks found using c:\windows\winusb0100.cat
10.844: LoadFileQueues: UpdSpGetSourceFileLocation for halmacpi.dll failed: 0xe0000102
10.875: System Restore Point set.
10.875: Copied file: C:\WINDOWS\system32\spmsg2.dll
10.875: PFE2: Not avoiding Per File Exceptions.
10.906: GetCatVersion: Failed to retrieve version information from C:\WINDOWS\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\winusb0100.cat with error 0x80092004
10.906: GetCatVersion: Failed to retrieve version information from C:\WINDOWS\winusb0100.cat with error 0x80092004
11.047: DoInstallation: Installing assemblies with source root path: c:\0cd478645d8313538720fa32a5\
11.047: Num Ticks for Copying files : 1250
11.047: Num Ticks for Reg update and deleting 0 size files : 0
11.047: ---- Old Information In The Registry ------
11.047: Source:c:\007f23e7a3b1212705\update\update.exe (6.3.4.0)
11.047: Destination:
11.047: Source:c:\007f23e7a3b1212705\update
11.047: Destination:
11.047: Source:c:\007f23e7a3b1212705
11.047: Destination:
11.047: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\update.exe (6.3.4.0)
11.047: Destination:
11.047: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\updspapi.dll (6.3.4.0)
11.047: Destination:
11.047: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update
11.047: Destination:
11.047: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4
11.047: Destination:
11.047: Source:c:\69852a20cb48805dbdd7\update\update.exe (6.3.4.0)
11.047: Destination:
11.047: Source:c:\69852a20cb48805dbdd7\update
11.047: Destination:
11.047: Source:c:\69852a20cb48805dbdd7
11.047: Destination:
11.047: ---- New Information In The Registry ------
11.047: Source:c:\007f23e7a3b1212705\update\update.exe (6.3.4.0)
11.047: Destination:
11.047: Source:c:\007f23e7a3b1212705\update
11.047: Destination:
11.047: Source:c:\007f23e7a3b1212705
11.047: Destination:
11.062: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\update.exe (6.3.4.0)
11.062: Destination:
11.062: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update\updspapi.dll (6.3.4.0)
11.062: Destination:
11.062: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4\update
11.062: Destination:
11.062: Source:c:\e6728d72a6fe1c48f93b4ba61ed5c4
11.062: Destination:
11.062: Source:c:\69852a20cb48805dbdd7\update\update.exe (6.3.4.0)
11.062: Destination:
11.062: Source:c:\69852a20cb48805dbdd7\update
11.062: Destination:
11.062: Source:c:\69852a20cb48805dbdd7
11.062: Destination:
11.062: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
11.062: RebootNecessary = 0,WizardInput = 1 , DontReboot = 1, ForceRestart = 0
-------------------------------------- FROM SETUPACT.LOG ----------------------------------------
[02/15/2007 10:03.44.831] WinusbUpdate: Looking for resource WINUSB_INSTALLER_RESOURCE
[02/15/2007 10:03.44.831] WinusbUpdate: Locating resource stream WINUSB_INSTALLER_RESOURCE.
[02/15/2007 10:03.44.846] WinusbUpdate: unpacking update from resource to Microsoft WinUsb Install-v1.0.exe.
[02/15/2007 10:03.44.846] WinusbUpdate: Temporary path is C:\WINDOWS\Temp\Win129E.tmp.
[02/15/2007 10:03.44.862] WinusbUpdate: Invoking update with command line “/quiet /ER /log:”%WINDIR%\temp\winusb_update.log"".
[02/15/2007 10:03.44.878] WinusbUpdate: Invoking ““C:\WINDOWS\Temp\Win129E.tmp\Microsoft WinUsb Install-v1.0.exe” /quiet /ER /log:“C:\WINDOWS\temp\winusb_update.log””.
[02/15/2007 10:03.44.878] WinusbUpdate: Waiting for update to terminate.
[02/15/2007 10:03.57.331] WinusbUpdate: Update process returned 0.
[02/15/2007 10:03.57.362] WinusbUpdate: Cleaning up update.
-------------------------------------- FROM SETUPACT.LOG ----------------------------------------
#I123 Doing full install of “USB\MyVid&MyPid\5&3A8FFAE1&0&9”.
#E362 An unsigned or incorrectly signed file “c:\temp\myusbinst\device.inf” for driver “PrtEmm.DeviceDesc” will be installed (Policy=Warn). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-035 Processing service Add/Delete section [MyUsbPrj.Services].
#E275 Error while installing services. Error 0xe0000219: The installation failed because a function driver was not specified for this device instance.
#E122 Device install failed. Error 0xe0000219: The installation failed because a function driver was not specified for this device instance.
#E157 Default installer failed. Error 0xe0000219: The installation failed because a function driver was not specified for this device instance.
#I060 Set selected driver.
#I125 Installing NULL driver for “USB\MyVid&MyPid\5&3A8FFAE1&0&9”.
#I121 Device install of “USB\MyVid&MyPid\5&3A8FFAE1&0&9” finished successfully.
[2007/02/15 10:04:09 3536.284]
#-198 Command line processed: “C:\WINDOWS\system32\mmc.exe” /s C:\WINDOWS\system32\compmgmt.msc
#-166 Device install function: DIF_REMOVE.
#I289 Removing device “USB\MyVid&MyPid\5&3A8FFAE1&0&9”.
#I048 Device removed.
I’m stumped do I need to write responce code on the host side or something to get WinUsb to link to my gizmo ?
I’ve recently seen error # 1 device was not configured properly from device manager’s install wizard so I must be close
since winusb does install that and when I started it wae @ error twenty-something forgot the message about a week ago…
any help I can get at this point would be a god-send. DBB