+1 vote
in Other by
How do I make a process go the background in C? I know how to do that in UNIX but how to do it in Windows ?

What I want is for the user to double-click the process executable, and it just goes into the background ... and does not open a window while executing.

I'm not looking for complete solution just a reference. Thanks !

JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
As @ChikaneHimeko has already stated create a Windows application that has no windows:

#include <windows.h>

int APIENTRY WinMain(HINSTANCE hInstance,

                     HINSTANCE hPrevInstance,

                     LPSTR     lpCmdLine,

                     int       nCmdShow)

{

    Sleep(5000); /* Just here to illustrate not visible but running */

    return 0;

}
...