GithubHelp home page GithubHelp logo

loki-hidriver's Introduction

loki-hidriver

Virtual mouse and keyboard driver for Windows 7 and higher.

Usage

  1. Disable Driver Signature Enforcement.
  2. Install the driver using devcon.exe or manually.
  3. Use the driver just like it is used in the example.

loki-hidriver's People

Contributors

hedgar2017 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loki-hidriver's Issues

Would you do me a favor

i am greenhorn in drivers and so sorry for my poor english

function QueueManualSendReport in queue_manual.c construct a hid data
finial CopyToRequestBuffer copy the data and use CopyToRequestBuffer ,
I wonder who processed hid data and move the mouse in the end,
Will it be processed by the system's HID driver after copying?
i can not find any operate like WdfRequestSend or something
please help me
I've been fightingit with chatgpt all night and rellay need your help
I appreciate your response ,thank you

HID devices are not classified automatically in Windows 7

I have finished the driver and now it works perfectly, but only on Win8.1 and Win10. On Win7 it starts, but when it comes to recognizing HID devices specified in HID report descriptor, Win7 puts them into the 'Other devices category'.

Device manager screenshot

The two yellowed devices are the mouse and keyboard, and the third is a fake HID device I use to send output reports (because mouse and keyboard are opened by HID services exclusively).

Win8.1 and Win10 do everything right and put each HID device in its category (Mouse, Keyboard, and HID for the 3rd fake HID device).

Note: now there is the 4th HID device (similar to the 3rd, but the 3rd is for mouse and the 4th is for keyboard).

The original MSDN topic.

please help 么

i am greenhorn in drivers and so sorry for my poor english

function QueueManualSendReport in queue_manual.c construct a hid data
finial CopyToRequestBuffer copy the data and use CopyToRequestBuffer ,
I wonder who processed hid data and move the mouse in the end,
Will it be processed by the system's HID driver after copying?
i can not find any operate like WdfRequestSend or something
please help me
I've been fightingit with chatgpt all night and rellay need your help
I appreciate your response ,thank you

Could it run in Windows11

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!!

INF error

The inf file you are using will not work in new versions of visual studio thanks to the wonderful choice by Microsoft to remove Dual DefaultInstall and Manufacturer settings in your inf file.

I have been reading your posts and this seems like a really cool project. Have been interested in the HID emulation side of driver development for a remote control project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.