I need to write an invisible program that does nothing
I can use FreeConsole() to hide the program, but how do I pause it after that? Simple things like system(pause) and getchar() dont work when you detach it from the console.
I don't want it to do anything, but I want it to be running (and not using any CPU cycles)
I understand that the only way to close it will be with task manager, thats fine
Code can be C or C++
EDIT: I know it sounds like I'm asking you to write the program for me, but I can't imagine it'll be much more than 5 lines long. I'm sure there is a simple command I'm missing