Offensive PythonC LanguageRunning Windows EXE in the Background
Offensive PythonC LanguageRunning Windows EXE in the Background
C Language

Running Windows EXE in the Background

     If coding in Python, running an EXE in the background, unattached to a console is easily accomplished with PyInstaller’s -w option.  But what if you are coding in C?  I know, who in their right mind codes in the C’s?  Well, on occasion, I still do because I’m old and learned C first, like 35 years ago or whatever it has been now.   

     So how to make the EXE run in the background with C?  Easy.  Don’t use a main function.  Use a wWinMain function! 

And in Visual Studio, set your SubSystem property to the following:

Leave a Reply

Your email address will not be published. Required fields are marked *