abhijithb200/Keylogger ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple C program for Windows that records what gets typed while the program is running, then saves it to a text file called key.txt in the same folder.

I want it to be easy to run, just open the app and let it capture input until I close it, then I can check the saved file to see everything that was entered. Keep the code small and straightforward, and make sure it works from the command line or as a basic exe.

If anything about current Windows input handling has changed, look up the current docs online and use the safest straightforward approach. Please also include a short README note on how to compile and run it.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab