944,098 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 687
  • C++ RSS
Nov 3rd, 2009
0

Proper way to delay an application while a service is starting?

Expand Post »
My system has a service (Serv.exe) which starts as LocalSystem and should be running at all time, additionally on startup of the PC (auto logon) the user has a STARTUP application (App.exe) which runs.

Sadly I've found that sometimes App.exe starts to run before Serv.exe has finished starting, and one of the first thing App.exe does is communicate with Serv.exe (which obviously fails).

So, I am looking for the proper way to handle this situation (I assume it isn't that rare)...
I know I can query the service from App.exe for a specific amount of time but that doesn't seem like a clean solution.

One thought I had ... just not sure if it is possible ... can you delay windows from allowing the user to login (or autologin) until the LocalSystem Services are running?

Any help/hints would be greatly appreciated.
Thanks,
Similar Threads
Reputation Points: 9
Solved Threads: 0
Light Poster
Shaitan00 is offline Offline
38 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Program Help
Next Thread in C++ Forum Timeline: Issues with functions and pass by reference!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC