I have an application that need to be in memory always. The app detect some files like limewire, edonkey or whatever file (with wildcards) or app title (with wildcards too) you want

The app is for my work, to prevent people to run some files that eat bandwidth

I hide the app with some shortcut-key..

Ok, the problem is that i can kill the app with the task manager. I want to detect when some user try to kill the app and the app must run another instance of itself

I try with query_unload, unload, terminate events and nothing. I try subclassing the wm_close, wm_quit, wm_destroy events and nothing

Anybody have a answer ?

Please, not say "query_unload must work". Just answer if you have tested the answer and works fine

Sorry about my bad english, and thanks to all people who answer to the other post (about Vista and VB6)