Is there a way in C ++ to check if my program is running by a user or from autorun? I want to show / not show the window in these cases.
Make an autostart entry for the given command line flag, for example /nowin .
/nowin