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

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
W_FoxAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CesarioConnect With a Mentor Commented:
AFAIK, "No, it´s not possible"
You have to run your Application as Service ;-)

Best Regards

Cesario
0
 
intheCommented:
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
 
W_FoxAuthor Commented:
yes, seems that I have to run app as a service :)
Sorry for long silence.
W_Fox
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.