Is there any way in C++ to check if my program is launched by a user or from an autostart? I want to show / not to show window in these cases.
Make the autostart entry set a command line flag such as /nowin.
/nowin