Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Communication Between two Applications

Posted on 2004-08-14
4
131 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

829 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