Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

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
0
W_Fox
Asked:
W_Fox
1 Solution
 
CesarioCommented:
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now