Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Communication Between two Applications

Posted on 2004-08-14
4
Medium Priority
?
136 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
[X]
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
  • 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 2000 total points
ID: 11821322
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Suggested Courses

670 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