Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Detecting system in "logging on" state?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcos Stefanakopolus - 24 May 2005 17:16 GMT
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!

Signature

I may not always have the best answers, but at least I'm not posting
questions in the wrong newsgroups...

Sean Hederman - 25 May 2005 05:44 GMT
[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)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.