Solved

How to avoid closing of program when current user logs off?

Posted on 2002-05-09
3
154 Views
Last Modified: 2010-08-05
I developed a program which runs as a background application (monitoring of directories). The problem is, that it is closed when current user logs off. Is there any way how to avoid it? Building of service is possible, but that's the last thing I'd like to do.

50 points for now, because if it's impossible then answer "No, it's not possible" wouldn't cost more [IMHO :)]. If it _is_ possible, then I'll give 100 points for sure :)

W_Fox
0
Comment
Question by:W_Fox
[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
3 Comments
 
LVL 8

Accepted Solution

by:
Cesario earned 50 total points
ID: 6998792
AFAIK, "No, it´s not possible"
You have to run your Application as Service ;-)

Best Regards

Cesario
0
 
LVL 17

Expert Comment

by:inthe
ID: 7000284
hi,
Cesario is right,well for win9* maybe possible (though cheating as you are telling 9* your a service) if you use RegisterServiceProcess and also handle WM_ENDSESSION message .

nt/2k no cheats you need a service.
0
 

Author Comment

by:W_Fox
ID: 7124846
yes, seems that I have to run app as a service :)
Sorry for long silence.
W_Fox
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month7 days, 9 hours left to enroll

632 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