c++ - signal when user kills process? -


6 signals listed on this site are overloaded

Then I ran my app (double click no Try through IDE) and 1) End work 2) X and 3 on the top) The process of killing I hope that the first two cause any kind of signal (I am on XP), but I have some Did not get even. When a signal occurs, do I have permission to open files to write in it? I'm guessing (SIGSEGV allows me).

When Firefox crashes or when I hit it, it remembers what page I was in.

My main question is what can I use to capture the kill process

Win32 does not provide the option to kill your code with TerminateProcess (which will be when you click on "Task Manager" and "Task" [X] .)

You can capture the SIGSEGV signal because the C runtime library provides a simulation of this signal while running on Windows. If the program causes Windows Access violation (exception 0xC0000005), then the runtime library has the option to capture it and simulate the Unix style SIGSEGV for you, however, this is not the best way to handle such an exception. If you are writing Win32 programs, you should not normally try to use Unix style services.


Comments