Hi,
from reading wdk documentation, and looking at the old vhidmini example, i’ve pieced together a hid minidriver. I am trying to make a virtural hid device HID minidriver to serve as a wrapper to a piece of hardware with a ftdi usb - serial chip in it.
This is my .inf file:
[Version]
Signature= “$CHICAGO$”
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=“XXXXXXXXXXXXXX”
DriverVer=12/28/2009, 0.01.1
[Manufacturer]
%Mfg%=DeviceList, Windows7
[DeviceList]
“car Controller”=Install, %GUID%\HID_DEVICE
“car Controller”=Install.Device, HID\carController
[Install]
CopyFiles=FilesToCopy, FilesToCopy.Inf
AddReg=UpdateRegistry
[UpdateRegistry]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,carControllerDriver.sys
[DestinationDirs]
FilesToCopy=12 ;driver directory
FilesToCopy.Inf=17 ;inf file directory
[carControl.Inst.Services]
AddService= carController,0x000000002,carController_service_inst,
[carController_service_inst]
DisplayName = “Car Controller Driver Service”
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 0 ;SERVICE_ERROR_IGNORE
ServiceBinary = %12%\carControllerDriver.sys
[Install.Services]
AddService = ,0x00000002, ; NULL Service
[SourceDisksName]
1=“carControllerDriver Disk”,
[FilesToCopy]
carControllerDriver.sys
[FilesToCopy.Inf]
carControllerDriver.inf
[Strings]
prov=“XXXXXXXXXXXXXX”
Service_Description=“car Controller Driver”
Mfg=“XXXXXXXXXXXXXX”
; *********Non Localizable Strings*****
GUID={XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
Under windows 7 both the .inf file and the .sys file for the driver get copied into the windows inf directory and System32\Driver directory and “car Controller” shows up under device manager.
But, when I click on car Controller, “No drivers are installed for this device.” shows up under device status.
Have I messed up the .inf file, or does this mean that the problem is with the driver itself?