Hi guys!
I would like to have a notification when the user tries to terminate my program under Win 2000 with the task manager. Under Win98 I get a WM_DESTROY message. But under Win 2000 there doesn?t seem to be any message...?
Does anybody know if there?s a way?
I would like to have a notification when the user tries to terminate my program under Win 2000 with the task manager. Under Win98 I get a WM_DESTROY message. But under Win 2000 there doesn?t seem to be any message...?
Does anybody know if there?s a way?
hi
under windows 2000 . i'm checking for WM_CLOSE
if you are tring to close the windows with the task manager
1. with end task . the program will ask you if you sure
2. if you do end processs . the program will stop running with out "asking "
eko
under windows 2000 . i'm checking for WM_CLOSE
if you are tring to close the windows with the task manager
1. with end task . the program will ask you if you sure
2. if you do end processs . the program will stop running with out "asking "
eko
Hi eko,
thx for your reply. Even with WM_CLOSE the user can terminate the process without notification. This is a problem for my shareware protection.
But until a proper way is found I use a workaround. My prog searches for the task manager window. When it?s there it knows that the user might try to terminate the process and can save important things in advance.
thx for your reply. Even with WM_CLOSE the user can terminate the process without notification. This is a problem for my shareware protection.
But until a proper way is found I use a workaround. My prog searches for the task manager window. When it?s there it knows that the user might try to terminate the process and can save important things in advance.
Take a look at "StickyApp32" (www.internals.com)