Detecting system in "logging on" state?

  • Thread starter Thread starter Marcos Stefanakopolus
  • Start date Start date
M

Marcos Stefanakopolus

I have a utility that runs from a shortcut in the Startup folder. However,
it's a very low-priority utility, and there's no real reason why my utility
needs to fight for CPU time with all the other stuff that gets started up
when the user logs on. I'm happy for my utility to just wait until things
quiet down before getting on with its work. However, I don't know how to
detect when my utility is launched that the launch happened from the start
menu shortcut, rather than from the user invoking the utility directly.

Is there some way that I can either:
* detect that the system is busy logging the user on?
* detect that my utility was launched via the Startup folder shortcut?

Or, of course, if someone has a better suggestion for how to detect this
situation, that would be great too. Thanks!
 
[Snip]>
Is there some way that I can either:
* detect that the system is busy logging the user on?
* detect that my utility was launched via the Startup folder shortcut?

A simple solution would be to have the Start Menu shortcut run your
application with a parameter (e.g. "MyApp -s" or something)
 
Back
Top