Solved

Communication Between two Applications

Posted on 2004-08-14
4
130 Views
Last Modified: 2010-05-02
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?
0
Comment
Question by:DARKSAGES
  • 2
4 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 11802482
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
 

Author Comment

by:DARKSAGES
ID: 11802519
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
 
LVL 4

Expert Comment

by:cachedVB
ID: 11820778
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
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 11821322
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question