My purpose is to make a keylogger and I don't want to just to copy the available codes out there around the internet because they can easily get caught by antivirus so I am writing one with an algorithm to make it seems like it is not recording the keystrokes. I wrote a program to make that while window is on top and it worked well. Then I used the following code to make it invisible:
HWND Stealth;
AllocConsole();
Stealth = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(Stealth,0);
but now the program can not capture the keystrokes because I cant anymore interact to the program. Is there a code line that makes it possible to interact with a window in invisible while other window is on top?