• C

shutdown tasks

I have a need for automatic start of backup application (writen by me => I have a source) during system shutdown. Since there is no equivalent of "Startup group" for shuting down, how to achieve this?
yuhooAsked:
Who is Participating?
 
alexoConnect With a Mentor Commented:
>> Since there is no equivalent of "Startup group" for shuting down
No, there isn't.  You need to have a running process that will detect the shudtown and do what you need.  Check the docs for WM_QUERYENDSESSION and WM_ENDSESSION messages.  Either start your process from the "startup group" or as a service.

>> For which OS and why is this question in the C group?
rbr has a point.  I assumed you were asking about Win9x/NT but you never said so yourself.  Also, this question is OS-specific and language-independent.  This is clearly the wrong area for it.
0
 
rbrCommented:
For which OS and why is this question in the C group?
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.