// Detaches the calling process from its console. BOOL FreeConsole(void);
myConsole = GetConsoleWindow(); ShowWindow(myConsole,SW_HIDE);