Detecting system in "logging on" state?

  • Thread starter Marcos Stefanakopolus
  • 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!
 
S

Sean Hederman

[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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top