I want to know how to hide the console window at startup.
I want to be honest and tell you about the keylogger program, but it's not my intention to hack someone. This is for a small school project that I want to do to show the dangers for hackers. (I thought it would be great to show something like this at school.)
I hope you help me with this.
So. Here is the code I wrote looking at it on google. (Ignore all comments about intentions.)
#include <cstdlib>
As you can see, I turned on Windows.h and wrote FreeConsole (); mostly.
Yes, I see that the window appears and immediately disappears. But immediately after that a new console opens, which is simply empty. (With a space, I mean: "Press any key to continue .." I think about whether this has anything to do with the "system (" PAUSE ")"
So, I want to know why it opens a new console instead of just creating and hiding the first one.
Thanks.:)
source share