hedgar2017 / loki-hidriver

Virtual mouse and keyboard driver for Windows 7 and higher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could it run in Windows11

coconutLatte opened this issue · comments

Hi there

I am developing virtual mouse/keyboard device and driver in Windows 11.

I've modify the hidriver.inf file like below

[Version]
Signature="$WINDOWS NT$"
Class=VirtualDriver
ClassGuid={56aabbba-89af-11ee-b3e3-b3f6a4306fba}
Provider=%ProviderName%
CatalogFile=hidriver.cat
DriverVer=01/07/2018

[SourceDisksNames]
1=%DiskName%,,,
[SourceDisksFiles]
hidriver.sys=1
[DestinationDirs]
DefaultDestDir=12

[Microsoft.NT$ARCH$.6.1]
%DeviceName%=DefaultInstall,root\hidriver

[DefaultInstall.NT]
CopyFiles=Files
[Files]
hidriver.sys

[DefaultInstall.NT.HW]
AddReg=HWAddReg
[HWAddReg]
HKR,,"LowerFilters",0x00010008,"hidriver"

[DefaultInstall.NT.Services]
AddService=hidriver,0x00000000,hidriverService
AddService=mshidkmdf,0x00000002,mshidkmdfService
[hidriverService]
DisplayName=%ServiceName%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\hidriver.sys
[mshidkmdfService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\mshidkmdf.sys

[DefaultInstall.NT.Wdf]
KmdfService=hidriver,KmdfLibrary
[KmdfLibrary]
KmdfLibraryVersion=$KMDFVERSION$

[Strings]
DeviceName="VARIABLE_1"
DiskName="VARIABLE_2"
ProviderName="VARIABLE_3"
ManufacturerName="VARIABLE_4"
ServiceName="VARIABLE_5"
ClassName="VARIABLE_6"

It compiles ok but install failed.

PS C:\workspace\loki-hidriver\x64\Release> devcon.exe install .\hidriver.inf root\hidriver
devcon.exe failed.

Is there anyway to know how to install or debug it?
Or how can I get the Windows 11 support version.

Hope for help. Thanks!!

I have a very similar problem. I successfully built the driver but cannot install it. The steps I used were:

  1. Build driver

  2. Enable test signing:

    BCDEDIT /SET TESTSIGNING ON

  3. Reboot

  4. Install the test signing certificate "hidriver.cer"

  5. Attempt to install the driver with DEVCON:

devcon install "hiddriver.inf" root\hidriver
devcon failed.

Please does anyone know how to solve this problem?