I have just started a course on the creation of keylogger and the first function I encountered was something to make the console disappear:
#include <iostream>
#include <windows.h>
using namespace std;
int main() {
MSG Msg;
while (GetMessage(&Msg, NULL, 0, 0)) {
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
}
The instructor is using Code Blocks and said that we will need to add a console flag "-mwindows" to the menu of console flags in Code Blocks, but I was not successful in finding neither the "console flag" nor an alternative option in Visual Studio.