• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

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?
0
yuhoo
Asked:
yuhoo
1 Solution
 
rbrCommented:
For which OS and why is this question in the C group?
0
 
alexoCommented:
>> 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

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!

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