C++ How do I hide a console window on startup?

后端 未结 9 596
悲哀的现实
悲哀的现实 2021-02-01 05:43

I want to know how to hide a console window when it starts.

It\'s for a keylogger program, but it\'s not my intention to hack someone. It\'s for a littl

9条回答
  •  梦如初夏
    2021-02-01 06:01

    Just do that on startup

    myConsole = GetConsoleWindow();
    ShowWindow(myConsole,0);
    

提交回复
热议问题