Communication Between two Applications

I have one application that is running as a service. When a user logs on I want another application to run at logon. (this I done) What I want to know if there is a way for the application that is running as a service to immediately know when the other application stops running. (user closes it or user logs off) Any suggestions?
DARKSAGESAsked:
Who is Participating?
 
EDDYKTCommented:
How do you start up the second app?

You can send message from the second app who is the current login user

From your service you can also detemine who is the current login user and then compare.
0
 
DARKSAGESAuthor Commented:
I added it to the run in regedit. Actually the only reason i need that second app is for getting the user name of the person who is log-on. I know how to do this in a application but when its runing as a service it allways gives system for user name. Thats why i need the second app to tell me who is loged on. Can you find out who is loged on even if the application is running as a service? If so than that is all i would need.
0
 
cachedVBCommented:
Is 1 ms enough time for them to wait? You can make a timer check running processes (http://vbnet.mvps.org/index.html?code/system/toolhelpprocesses.htm) for code and whenever your name-getting process isn't on the list then you know that it has been closed.
0
All Courses

From novice to tech pro — start learning today.