How thevoid-001/windows-keylogger works
This small C program installs a Windows low-level keyboard hook, runs a message loop so hook events are delivered, interprets key events, and prints readable output to the console. The callback also queries keyboard state for character translation and passes events onward. The implementation is in one file, so several responsibilities share its path; the graph does not imply separate modules.
Main entry points: keylogger.c Hook callback
Components 8
Keyboard capture
- Application entry
keylogger.c - Hook registration
keylogger.c - Message loop
keylogger.c - Hook callback
keylogger.c - Key interpretation
keylogger.c
Other components
- Keyboard user
- Windows APIs
- Console output
Connections 10
- Application entry → Hook registration: installs
keylogger.c - Hook registration → Hook callback: registers callback
keylogger.c - Application entry → Message loop: runs
keylogger.c - Windows APIs → Hook callback: delivers events
README.md - Keyboard user → Windows APIs: provides input
README.md - Hook callback → Key interpretation: interprets keys
keylogger.c - Key interpretation → Windows APIs: queries key state
keylogger.c - Key interpretation → Console output: prints characters
keylogger.c - Hook callback → Windows APIs: forwards event
keylogger.c - Application entry → Windows APIs: removes hook
keylogger.c