Search code examples
c++autostart

How to check if the program is run from an autostart?


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.


Solution

  • Make the autostart entry set a command line flag such as /nowin.