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.
Asked
Active
Viewed 154 times
6
-
There's probably not a portable way. You should indicate which OS you're using – Matt Timmermans May 30 '16 at 16:17
-
There is no way to "detect" it, but see the answer for a good way to make it work if you have full control over the autostart entry. – nvoigt May 30 '16 at 16:17