how to prevent a console created with AllocConsole()

  • Thread starter Thread starter GiuPa
  • Start date Start date
G

GiuPa

Guest
how to prevent a console created with AllocConsole()from the accidental closure of the program and reduce it to an icon only?(or better tray ico)

AllocConsole();
ShowWindow(GetConsoleWindow(), SW_HIDE);
BindStdHandlesToConsole();

there is no way to intercept the console messages

Thanks

Continue reading...
 
Back
Top