Solved

shutdown tasks

Posted on 1998-11-25
2
184 Views
Last Modified: 2011-08-18
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
Comment
Question by:yuhoo
2 Comments
 
LVL 10

Expert Comment

by:rbr
ID: 1254637
For which OS and why is this question in the C group?
0
 
LVL 11

Accepted Solution

by:
alexo earned 50 total points
ID: 1254638
>> 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

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now