We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,434 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Stop Process Cleanly

How can I stop a process cleanly given it's name?

I can use TerminateProcess but it says it does not allow the application to clean up and of course I want it to clean up. This application does not have a WM_CLOSE or WM_QUIT.. I tried.. and I cannot send it PostMessage(HWND, WM_QUIT, 0, 0);

Why? because instead of it closing, it will minimize to system tray -__-

Again I don't want to use a dirty thing like TerminateProcess so does anyone have any ideas?

2
Contributors
1
Reply
9 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
triumphost
Practically a Master Poster
630 posts since Oct 2009
Reputation Points: 59
Solved Threads: 56
Skill Endorsements: 1
deceptikon
Challenge Accepted
Administrator
3,500 posts since Jan 2012
Reputation Points: 822
Solved Threads: 481
Skill Endorsements: 58

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0575 seconds using 2.66MB