d***@gmail.com
2008-08-27 11:33:27 UTC
Hi
I want to load hidusbfx2 driver as virtual one. But when I load
*.inf , it shows "The specified location does not contain information
about your hardware". What are the changes I made when I use this
driver for virtual?
I attached my inf file. Here I change only USB\VID_0547&PID_1002 to
virtualname.
Is it correct?
--------------------------------------------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
LayoutFile=layout.inf
DriverVer=08/27/2008,6.0.6001.18000
CatalogFile=kmdfsamples.cat
;
; Layout.inf (etc.) list all files shipped with the operating system
so the
; source description sections are only needed if other files are
needed.
;
; In order to use IHV drivers, the SourceDisksNames section must
list the
; disk(s) containing the drivers and the SourceDisksFiles section
must list
; which disk number each file to be copied is found on.
; Disk number 99 is used to avoid a conflict with the disk numbers
defined
; in layout.inf
;
; Files used in a driver installation need to be digitally signed
otherwise
; installation may fail. See documentation elsewhere in the DDK
regarding
; driver signing.
[SourceDisksFiles]
hidusbfx2.sys = 99
hidkmdf.sys = 99
[SourceDisksNames]
99 = %DISK_NAME%,,,""
[DestinationDirs]
CopyFilesSYS = 12
CopyFilesDLL = 11
[Manufacturer]
%VENDOR%=Vendor, NTx86
; For Win2K
[Vendor]
%hidusbfx2% = hidusbfx2.Inst, USB\VID_0547&PID_1002
%customCollection% = customCollection.Inst, HID_DEVICE_UP:FF00_U:
0001
; For XP and later
[Vendor.NTx86]
%hidusbfx2% = hidusbfx2.Inst, USB\VID_0547&PID_1002
%customCollection% = customCollection.Inst, HID_DEVICE_UP:FF00_U:
0001
;===============================================================
; hidusbfx2
;===============================================================
[hidusbfx2.Inst.NT]
CopyFiles = CopyFilesSYS, CopyFilesDLL
[hidusbfx2.Inst.NT.HW]
AddReg = hidusbfx2_Parameters.AddReg
;
; hidkmdf is the function driver and hidusbfx2 is the lower filter
;
[hidusbfx2.Inst.NT.Services]
AddService = hidkmdf,0x00000002,hidkmdf_Service_Inst,
AddService = hidusbfx2,, hidusbfx2_Service_Inst
[CopyFilesSYS]
hidusbfx2.sys
HidClass.sys,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
HidParse.sys,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
hidkmdf.sys
[CopyFilesDLL]
Hid.dll,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
[hidusbfx2_Parameters.AddReg]
HKR,,"LowerFilters",0x00010000,"hidusbfx2"
[hidusbfx2_Service_Inst]
DisplayName = %hidusbfx2%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\hidusbfx2.sys
LoadOrderGroup = PNP Filter
[hidkmdf_Service_Inst]
DisplayName = %hidkmdf.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\hidkmdf.sys
;===============================================================
; Custom Collection install section
; - Only a Null service is installed.
;===============================================================
[customCollection.Inst]
[customCollection.Inst.NT]
[customCollection.Inst.NT.HW]
AddReg = customCollection.Inst.AddReg.NT.HW
[customCollection.Inst.AddReg.NT.HW]
HKR,,"SelectiveSuspendEnabled",0x00000001,0x1
[customCollection.Inst.NT.Services]
AddService = ,0x00000002, ; NULL Service
;================================================================
;--- WDF Coinstaller installation ------
;
[DestinationDirs]
hidusbfx2.Inst_CoInstaller_CopyFiles = 11
[hidusbfx2.Inst.NT.CoInstallers]
AddReg=hidusbfx2.Inst_CoInstaller_AddReg
CopyFiles=hidusbfx2.Inst_CoInstaller_CopyFiles
[hidusbfx2.Inst_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,
"WdfCoInstaller01007.dll,WdfCoInstaller"
[hidusbfx2.Inst_CoInstaller_CopyFiles]
WdfCoInstaller01007.dll,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for
win2k)
[SourceDisksFiles]
WdfCoInstaller01007.dll=99 ; make sure the number matches with
SourceDisksNames
[hidusbfx2.Inst.NT.Wdf]
KmdfService = hidusbfx2, hidusbfx2_wdfsect
[hidusbfx2_wdfsect]
KmdfLibraryVersion = 1.7
[Strings]
; *******Localizable Strings*******
VENDOR = "Vendor Name"
hidusbfx2 = "KMDF HID Minidriver for OSR USB-FX2 Device"
customCollection = "HID Vendor-defined Collection for OSR USB-FX2"
DISK_NAME = "HID USB FX2 Device Sample Install Disk"
hidkmdf.SVCDESC= "Filter Driver Service for HID-KMDF Interface layer"
; *******Non Localizable Strings*******
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
--------------------------------------------------------------------------------------------------------------
Thanks for Advance.
Regards - Dsrking.
I want to load hidusbfx2 driver as virtual one. But when I load
*.inf , it shows "The specified location does not contain information
about your hardware". What are the changes I made when I use this
driver for virtual?
I attached my inf file. Here I change only USB\VID_0547&PID_1002 to
virtualname.
Is it correct?
--------------------------------------------------------------------------------------------------------------
[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
LayoutFile=layout.inf
DriverVer=08/27/2008,6.0.6001.18000
CatalogFile=kmdfsamples.cat
;
; Layout.inf (etc.) list all files shipped with the operating system
so the
; source description sections are only needed if other files are
needed.
;
; In order to use IHV drivers, the SourceDisksNames section must
list the
; disk(s) containing the drivers and the SourceDisksFiles section
must list
; which disk number each file to be copied is found on.
; Disk number 99 is used to avoid a conflict with the disk numbers
defined
; in layout.inf
;
; Files used in a driver installation need to be digitally signed
otherwise
; installation may fail. See documentation elsewhere in the DDK
regarding
; driver signing.
[SourceDisksFiles]
hidusbfx2.sys = 99
hidkmdf.sys = 99
[SourceDisksNames]
99 = %DISK_NAME%,,,""
[DestinationDirs]
CopyFilesSYS = 12
CopyFilesDLL = 11
[Manufacturer]
%VENDOR%=Vendor, NTx86
; For Win2K
[Vendor]
%hidusbfx2% = hidusbfx2.Inst, USB\VID_0547&PID_1002
%customCollection% = customCollection.Inst, HID_DEVICE_UP:FF00_U:
0001
; For XP and later
[Vendor.NTx86]
%hidusbfx2% = hidusbfx2.Inst, USB\VID_0547&PID_1002
%customCollection% = customCollection.Inst, HID_DEVICE_UP:FF00_U:
0001
;===============================================================
; hidusbfx2
;===============================================================
[hidusbfx2.Inst.NT]
CopyFiles = CopyFilesSYS, CopyFilesDLL
[hidusbfx2.Inst.NT.HW]
AddReg = hidusbfx2_Parameters.AddReg
;
; hidkmdf is the function driver and hidusbfx2 is the lower filter
;
[hidusbfx2.Inst.NT.Services]
AddService = hidkmdf,0x00000002,hidkmdf_Service_Inst,
AddService = hidusbfx2,, hidusbfx2_Service_Inst
[CopyFilesSYS]
hidusbfx2.sys
HidClass.sys,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
HidParse.sys,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
hidkmdf.sys
[CopyFilesDLL]
Hid.dll,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for win2k)
[hidusbfx2_Parameters.AddReg]
HKR,,"LowerFilters",0x00010000,"hidusbfx2"
[hidusbfx2_Service_Inst]
DisplayName = %hidusbfx2%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\hidusbfx2.sys
LoadOrderGroup = PNP Filter
[hidkmdf_Service_Inst]
DisplayName = %hidkmdf.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\hidkmdf.sys
;===============================================================
; Custom Collection install section
; - Only a Null service is installed.
;===============================================================
[customCollection.Inst]
[customCollection.Inst.NT]
[customCollection.Inst.NT.HW]
AddReg = customCollection.Inst.AddReg.NT.HW
[customCollection.Inst.AddReg.NT.HW]
HKR,,"SelectiveSuspendEnabled",0x00000001,0x1
[customCollection.Inst.NT.Services]
AddService = ,0x00000002, ; NULL Service
;================================================================
;--- WDF Coinstaller installation ------
;
[DestinationDirs]
hidusbfx2.Inst_CoInstaller_CopyFiles = 11
[hidusbfx2.Inst.NT.CoInstallers]
AddReg=hidusbfx2.Inst_CoInstaller_AddReg
CopyFiles=hidusbfx2.Inst_CoInstaller_CopyFiles
[hidusbfx2.Inst_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,
"WdfCoInstaller01007.dll,WdfCoInstaller"
[hidusbfx2.Inst_CoInstaller_CopyFiles]
WdfCoInstaller01007.dll,,,0x00000010 ;COPYFLG_NO_OVERWRITE (for
win2k)
[SourceDisksFiles]
WdfCoInstaller01007.dll=99 ; make sure the number matches with
SourceDisksNames
[hidusbfx2.Inst.NT.Wdf]
KmdfService = hidusbfx2, hidusbfx2_wdfsect
[hidusbfx2_wdfsect]
KmdfLibraryVersion = 1.7
[Strings]
; *******Localizable Strings*******
VENDOR = "Vendor Name"
hidusbfx2 = "KMDF HID Minidriver for OSR USB-FX2 Device"
customCollection = "HID Vendor-defined Collection for OSR USB-FX2"
DISK_NAME = "HID USB FX2 Device Sample Install Disk"
hidkmdf.SVCDESC= "Filter Driver Service for HID-KMDF Interface layer"
; *******Non Localizable Strings*******
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
--------------------------------------------------------------------------------------------------------------
Thanks for Advance.
Regards - Dsrking.