Hi,
I’m trying to compile my driver for a 64-bit system.
It compiles and works fine when installed on a Dual Core system (Intel Core™2 CPU) with Vista Ultimate, 32-bit Operating System, compiled with WDK 6000 UMDF 1.5, Vista x86 Checked environment.
I have a system with a similar configuration, besides the fact that it is a 64-bit Operating System.
Installing the driver compiled with x86 env fails, and so does installing a driver compiled with Longhorn IA-64 checked. I assume that the AMD env is only for AMD processors, and therefore irrelevant.
The message I get in the properties section of the Device Manager is “the device is not configured correctly (code 1)”.
How can I compile it correctly? Or are there changes in the inf file I need to do in order for it to be installed correctly?
Attached below is my inf for 32-bit systems (the one that works).
Thanks,
Gadi
;
; WUDFOsrUsbFx2.inf - Install the OSR USB user-mode driver
;
[Version]
Signature=“$Windows NT$”
Class=HIDClass
;ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider=%MSFTUMDF%
DriverVer=25/04/2007,1.0.0000.00009
CatalogFile=wudf.cat
[Manufacturer]
%MSFTUMDF%=Microsoft,NTx86
[Microsoft.NTx86]
%OsrUsbDeviceName%=OsrUsb_Install, USB\Vid_1b96&Pid_0001&mi_02
[ClassInstall32]
AddReg=SampleClass_RegistryAdd
[SampleClass_RegistryAdd]
HKR,%ClassName%
HKR,Icon,“-24”
[SourceDisksFiles]
WUDFOsrUsbFx2.dll=1
WudfUpdate_01005.dll=1
WdfCoInstaller01005.dll=1
WinUsbCoinstaller.dll = 1
[SourceDisksNames]
1 = %MediaDescription%
; =================== UMDF OsrUsb Device ==================================
[OsrUsb_Install.NT]
CopyFiles=UMDriverCopy
Include=WINUSB.INF ; Import sections from WINUSB.INF
Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF
[OsrUsb_Install.NT.hw]
AddReg=OsrUsb_Device_AddReg
[OsrUsb_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.
[OsrUsb_Install.NT.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService=WUDFOsrUsbFx2, WUDFOsrUsbFx2_Install
UmdfServiceOrder=WUDFOsrUsbFx2
[OsrUsb_Install.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles
[WinUsb_Install]
KmdfLibraryVersion = 1.0
[WUDFOsrUsbFx2_Install]
UmdfLibraryVersion=1.5.0
;DriverCLSID=“{7bf5cb94-b686-4721-955e-878e48933a2c}”
DriverCLSID=“{DACA6A6E-CB6F-4851-BAFE-8F75013F66C8}”
ServiceBinary = “%12%\UMDF\WUDFOsrUsbFx2.dll”
[OsrUsb_Device_AddReg]
HKR,“LowerFilters”,0x00010008,“WinUsb” ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base
[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys
[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WudfUpdate_01005.dll”, “WdfCoInstaller01005.dll,WdfCoInstaller”, “WinUsbCoInstaller.dll”
[CoInstallers_CopyFiles]
WudfUpdate_01005.dll
WdfCoInstaller01005.dll
WinUsbCoinstaller.dll
[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to driversMdf
CoInstallers_CopyFiles=11
[UMDriverCopy]
WUDFOsrUsbFx2.dll
; =================== Generic ==================================
[Strings]
MSFTUMDF=“N-trig Innovative Technologies”
MediaDescription=“N-trig HID Tablet Digitizer - USB Driver Installation Media”
;ClassName=“N-trig”
WudfRdDisplayName=“Windows Driver Foundation - User-mode Driver Framework Reflector”
OsrUsbDeviceName=“N-Trig HID Tablet Digitizer”
WinUsb_SvcDesc=“WinUSB Driver”