How to hide another program window?

Asked

Viewed 77 times

0

I am making a program that opens other processes on the computer for its operation, however, depending on the form to be used by the user, many windows will be opened unnecessarily.

How to hide these windows also do not appear in the task bar.

Note: Windows are windows prompt.

2 answers

1


I do not think it appropriate to open another program through a call system. In Windows, you can create a new process through system call CreateProcess() after including the header windows.h; Already on Linux, you can make a fork() and in sequence a execve().

0

By citing prompt in question, understand that processes are being called via command, if applicable, could call for background execution:

start "" /b nome_executavel.exe 

system("start "" /b nome_executavel.exe");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.