mfc >> Ctrl+Alt+Del event catch and delete created files

by Neel » Wed, 29 Mar 2006 13:01:47 GMT

HI group,

while running my MFC dialog based application creating some temp files
for processing
and while close/destroy window, i delete temp files.

but if user gets out using Control+Alt+ Delete temp files are
remained without deleted.

thanks in adv



mfc >> Ctrl+Alt+Del event catch and delete created files

by Dan Bloomquist » Wed, 29 Mar 2006 14:40:19 GMT







But of course.


Best, Dan.

--
"We need an energy policy that encourages consumption"
George W. Bush.

"Conservation may be a sign of personal virtue, but it is not a
sufficient basis for a sound, comprehensive energy policy."
Vice President Dick Cheney




mfc >> Ctrl+Alt+Del event catch and delete created files

by Jeff Partch [MVP] » Wed, 29 Mar 2006 14:45:17 GMT





Is this one of those things that could be done in response to WM_ENDSESSION?
--
Jeff Partch [VC++ MVP]




Ctrl+Alt+Del event catch and delete created files

by Tom Serface » Thu, 30 Mar 2006 01:28:27 GMT

You may want to name your temp files using some special characters that your
program can recgonize the next time it runs and when the program starts up
again you could clean up any files that were stranded. This would also give
you a precursor to a "restore" feature that could help people pick up where
they left off in case of a session crash.

Tom







Similar Threads

1. Ctrl+Alt+Del event catch and delete created files

2. catching ctrl-alt-del

Does anybody know how (if it's possible) to write code to catch / handle a
ctrl-alt-del keypress in NT?

I want to guess it has something to do with hooks, but, i imagine this takes
something special...

Thanks,
Carl



3. alt+tab & ctrl+alt+del - C++ Builder IDE

4. How to catch keys "CTRL + ALT + DELETE"

How to catch keys "CTRL + ALT + DELETE"


5. Need Help -- font dialog will not display unless you hit Ctrl-Alt-del - CSharp/C#

6. hiding dektop and desable alt,ctrl,del keys in dotnet(vb.net)

7. How know windows locked (via ctrl-alt-del)? - CSharp/C#

8. API to disable\re-enable CTRL-ALT-DEL

I need to know the API call to disable the CTRL-ALT-DEL in a C# windows 
form.

We have created a time clock application to run on a tablet PC to replace 
the windows shell, we are going to hang it on a wall for associates to clock 
in and out and check their benefits.

I will disable task manager from Domain Policies but I need to disable the 
CTRL-ALT-DEL and also be able to renable it from a special passworded menu 
for administrative purposes.



Kevin Bilbee