By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,915 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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.

Jul 21 '05 #2

P: n/a
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.

Jul 21 '05 #3

P: n/a
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

Jul 21 '05 #4

P: n/a
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

Jul 21 '05 #5

P: n/a
Hello Pola,

Thanks for your prompt response.
Is it possible to get message in my appl from Windows Task Manager?

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.

Jul 21 '05 #6

P: n/a
Hello Pola,

Thanks for your prompt response.
Is it possible to get message in my appl from Windows Task Manager?

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.

Jul 21 '05 #7

P: n/a
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.

Jul 21 '05 #8

P: n/a
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.

Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.