A mouse driver which connects to your mouse on the kernel level and displays the input of your button.
This driver was made by following a YouTube tutorial (mentioned in Acknowledgements), but there were a lot of compilation errors, vm errors, and driver loading errors that I encountered. I have made a list of all the errors I encountered and how to fix them below!
NOTE: USE ONLY WIN 8.1 AS IT HAS ONLY BEEN TESTED ON IT
In Visual Studio, install Windows Development Kit, Windows 10 SDK (I'm working on Windows 10 and SDK version 10.0.19041.0).
Make a new project using the KMDF (Empty) Framework, and add a Source.c
file and paste the code I have given in the repo.
Make sure you are building the solution for x64
- error MSB8040: Spectre-mitigated libraries are required for this project - Go to properties of your project file --> C/C++ --> Code Generation --> you'll see an option at the bottom which will let you Disable Spectre-Mitigation
- inf2cat signability test failed - Go to properties --> Inf2Cat --> Use Local Time --> change to Yes (/useLocalTime)
VM Used
- Windows 8.1 (64-bit)
- Virtual Box only
Disable Integrity Checks -
- Click the “Start” button.
- Type “command“.
- Right-click on “Command Prompt” and select “Run As Administrator“.
- Do one of the following:
- To disable device driver signing, type
BCDEDIT /set nointegritychecks ON
then press “Enter“ - To enable device driver signing, type
BCDEDIT /set nointegritychecks OFF
then press “Enter“
Disable Windows Defender -
- Open Windows Defender --> Real Time Protection --> Disabled/Paused
- Driver Handle Error - In Visual Studio, go to properties --> Driver Settings --> Driver Model. Here set
KMDF version Major = 1
andKMDF version Minor = 9
. Now build your solution.
Check if you have compiled the driver using x64 in Visual Studio Code
For Driver signature enforcement issue --> ran bcdedit.exe /set nointegritychecks on
Signing issue --> ran bcdedit /set testsigning on
To disable Driver signing you can also go to Settings --> Update & Security --> Advanced Startup and click restart Inside advanced startup, click Troublshoot --> Advanced Options --> Startup Settings --> Restart Then Press F7 to disbale Driver Signature Enforcement Note-> This will disable Driver Signing till you restart the computer Another resource to fix this problem
- Click on Windows Icon and Gear Icon in the nav bar.
- Enable Kernel Verbose Log Option to see the output.
I have follwed this youtube video about Mouse Filter Driver by Programming LoL.