I
Ishmagel
Hi.
I have made a c++ program to be run on a computer (duh!). I set it to
be run with Windows Scheduler, and ticked the box saying: "Stop the
task if it runs for x hours and y minutes"
The program itself is running an infinite loop. My problem is that when
windows shuts it down, the program pops up with the "End Now?" dialog.
I would therefore like to do some last minute panic cleanup. So my
question is: is there a way for the c++ program to know it is about to
be shutdown from the outside? I only need to run one line of cleanup
code to make it all work
P.S.: I am aware that i might have posted to the wrong newsgroup, but i
think it is a generic c++ solution
I have made a c++ program to be run on a computer (duh!). I set it to
be run with Windows Scheduler, and ticked the box saying: "Stop the
task if it runs for x hours and y minutes"
The program itself is running an infinite loop. My problem is that when
windows shuts it down, the program pops up with the "End Now?" dialog.
I would therefore like to do some last minute panic cleanup. So my
question is: is there a way for the c++ program to know it is about to
be shutdown from the outside? I only need to run one line of cleanup
code to make it all work
P.S.: I am aware that i might have posted to the wrong newsgroup, but i
think it is a generic c++ solution