Please Help! What message should I get in my appl when somebody close appl from the Windows Task Man

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please Help
I am using VC++ in win 2000
In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")
I want to know in my appl what message to expect from "Task Manager",
when user will try to close my appl from the "Windows Task Manager".
what message should I get in my appl

thank you
Pola
 
Hello Pola,

Thanks for your post. I reviewed your description carefully, and now I'd
like to share the following information with you:

Generally speaking, we should handle cleanup operations of an application
in the WM_CLOSE message handler. There is other closing message that "Task
Manager" will send. Please also kindly note that Task Manager will
terminate a process forcibly if it hangs.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
thanks you
but WM_CLOSE message doesn't help me in this case

Is it possible to get message in my appl from Windows Task Manager

What closing message should I get in my appl,
when Task Manager will terminate forcibly my appl

thank you
Pol
 
Hello Pola,

Thanks for your prompt response.
In the Applications panle of Task Manager, it will post WM_CLOSE message to
the application when you select to "End Task. However, in Processes panel,
when you click "End Process", a Task Manager Warning comes up and states:

"WARNING: Terminating a process can cause undesired results including loss
of data adn system instability. The process will not be given the chance to
save its state or data before it is terminated. Are you sure you want to
terminate the process?"

If you click "Yes", it will forcibly terminate your application.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Pola,

I wanted to post a quick note to see if you would like additional
assistance or information regarding this particular issue. We appreciate
your patience and look forward to hearing from you!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top