How robertnisipeanu/winkeymacros works
Kernel-Level Driver (KeyboardFilterDriverKMDF)
• This is implemented as a KMDF (Kernel Mode Driver Framework) driver. It handles low-level tasks such as intercepting key inputs and injecting keys at the kernel level.
• Files related: Driver.cpp/h, MacroManager.cpp/h, UserCommunication.cpp/h, shared IOCTL definitions, and associated build files.
• It acts as the backbone: monitoring key inputs and differentiating between them based on source devices.
Communication Library (MacroLibrary)
• Provides an abstraction layer that simplifies interacting with the driver. Instead of handling low-level IOCTL requests, applications can use a higher-level API.
• Files: MacroLibrary.cpp/h, framework.h, and related Visual Studio project files.
• It encapsulates the communication protocol between an application and the kernel driver.