The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
So for some time I was relying on languages and libraries like autohotkey, pynput, and few others to automate routine tasks on my machine. With couple years of using macros in their multiple forms and shapes I've came to realize that some applications are always unaffected by such automation. That prompted me to explore the underlying windows api code, and do some research about
PostMessageW functions and their respective functionality (aside of general basics of how windows handle events and manages windows). This research in its turn pointed to the raw input api which I assume if I figure a way to emulate - it will eliminate most of the cases where the app would be unaffected by a macro. I tried to use
WM_INPUT as an argument and artificially create the
RAWINPUT structure passing one of existing device handles. However I faced the issue (which I now learned is a very common one) of getting a handle for a
RAWINPUT structure. My search then continued - and one of the posts I've found said that its a functionality which kernel driver can have. So I started doing my small research on drivers. I've found the manual on using km functionality from rust binary and making a driver in rust. However there are few things I cant figure yet:
WM_INPUTmessages? (in particular - what's the actual function called? can my driver don't use an actual HID device to generate the message but do it for example using IO from user-mode app?)
If anyone can recommend me some tutorial or point me to a helpful docs or just give few pointer I will appreciate that very much.
Thank you in advance.
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Internals & Software Drivers||15 November 2021||Live, Online|
|Writing WDF Drivers||TBD||Live, Online|
|Developing Minifilters||7 February 2022||Live, Online|
|Kernel Debugging||21 March 2022||Live, Online|