Thank you so much. VMWare also has the ability to work with a USB device as if it were a physical device. Now I have another problem. I can’t install the driver via the .inf file. The .inf file itself is fine (checked by infverif and inf2cat). After I click the “Install” button, I get the message “The operation completed successfully” and I expect my driver to be installed.
But when I try to enter the command “sc delete MouseDriver” I get the error “The specified service does not exist as an installed service”. I think this means that my driver is not installed on the system, but there are no errors during the installation process. What could be the problem and how can I find the reason?
My driver is not WDF driver
Platform is NTAMD64
There is my .inf file
;/++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Module Name:
; MouseDriver.inf
;
; Important:
; This INF depends on features for the Driver Store DIRIDs which are available starting Windows 10 1809
;
;–/
[Version]
Signature=“$Windows NT$”
Class=Mouse
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Provider=%Provider%
DriverVer=03/17/2001,1.0.0.1
CatalogFile=MouseDriver.cat
CatalogFile.NTAMD64 = MouseDriver.cat
PnpLockdown=1
[DestinationDirs]
DefaultDestDir = 13
[SourceDisksNames]
1 = %DiskName%
[SourceDisksFiles]
MouseDriver.sys = 1
[ControlFlags]
; We don’t want our device to be installable via the non-PnP hardware dialogs
ExcludeFromSelect = *
; Manufacturer Section
; ---------------------------------------------------------
[Manufacturer]
%ShinyThings%=ShinyThingsMfg,NT,NTAMD64
; Devices Section
; ---------------------------------------------------------
[ShinyThingsMfg.NT]
%HID\Vid_045E&Pid_001E.DeviceDesc%=MouseDriver_Inst, HID\Vid_045E&Pid_001E
%HID\Vid_045E&Pid_0029.DeviceDesc%=MouseDriver_Inst, HID\Vid_045E&Pid_0029
%HID\Vid_045E&Pid_0039.DeviceDesc%=MouseDriver_Inst, HID\Vid_045E&Pid_0039
%HID\Vid_045E&Pid_0040.DeviceDesc%=MouseDriver_Inst, HID\Vid_045E&Pid_0040
%HID\Vid_045E&Pid_0047.DeviceDesc%=MouseDriver_Inst, HID\Vid_045E&Pid_0047
%HID\VID_10C4&PID_8108.DeviceDesc%=MouseDriver_Inst, HID\VID_10C4&PID_8108
; Install Section
; ---------------------------------------------------------
[MouseDriver_Inst.NT]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT
CopyFiles = MouseDriver_Inst_CopyFiles.NT
[MouseDriver_Inst.NT.HW]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT.Hw
AddReg = MouseDriver_Inst_HWAddReg.NT
[MouseDriver_Inst_HWAddReg.NT]
HKR,“UpperFilters”,0x00010000,“MouseDriver”
[MouseDriver_Inst_CopyFiles.NT]
MouseDriver.sys
[MouseDriver_Inst.NT.Services]
Include = MSMOUSE.INF
Needs = HID_Mouse_Inst.NT.Services
AddService = MouseDriver, , MouseDriver_Service_Inst
[MouseDriver_Service_Inst]
DisplayName = %MouseDriver.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %13%\MouseDriver.sys
;[MouseDriver_Inst.NT.Wdf]
;KmdfService = MouseDriver, MouseDriver_wdfsect
;[MouseDriver_wdfsect]
;KmdfLibraryVersion = $KMDFVERSION$
; Strings Section
; ---------------------------------------------------------
[Strings]
; Provider names
Provider = “TODO-Set-Provider”
; Mfg names
ShinyThings = “Shiny Things”
; Service names
MouseDriver.SvcDesc = “MouseDriver Service”
; Media names
DiskName = “MouseDriver Driver Disk”
; HID device IDs
HID\VID_045E&PID_001E.DeviceDesc = “Shiny Things MouseDriver Mouse”
HID\VID_045E&PID_0029.DeviceDesc = “Shiny Things MouseDriver Mouse”
HID\VID_045E&PID_0039.DeviceDesc = “Shiny Things MouseDriver Mouse”
HID\VID_045E&PID_0040.DeviceDesc = “Shiny Things MouseDriver Mouse”
HID\VID_045E&PID_0047.DeviceDesc = “Shiny Things MouseDriver Mouse”
HID\VID_10C4&PID_8108.DeviceDesc = “Shiny Things MouseDriver Mouse”
; Standard defs
SPSVCINST_TAGTOFRONT = 0x00000001
SPSVCINST_ASSOCSERVICE= 0x00000002
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START = 0
SERVICE_SYSTEM_START = 1
SERVICE_AUTO_START = 2
SERVICE_ERROR_NORMAL = 1
SERVICE_ERROR_IGNORE = 0
REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001
REG_SZ = 0x00000000