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

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 35
Reputation: Shaitan00 has a little shameless behaviour in the past 
Solved Threads: 0
Shaitan00 Shaitan00 is offline Offline
Light Poster

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

 
0
  #1
21 Days Ago
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,
Reply With Quote Quick reply to this message  
Reply

Tags
services

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC