-
Closing a different application
Anyone who knows a descent way to properly close another application? I've
been struggling with a number of api's such as TerminateProcess and more.
I need the shutdown to properly notify any DLL's so there aren't any garbage
left in memory. ExitProcess seems to do the job but how??? It only shut down
the process where I call it from.
TerminateProcess works but it seems to be a violent way to shut down.
-
Re: Closing a different application
The polite way is to PostMessage() its main window with a WM_CLOSE.
Jim Deutch
MS Dev MVP
Magnus wrote in message <390957f4$1@news.devx.com>...
>
>Anyone who knows a descent way to properly close another application? I've
>been struggling with a number of api's such as TerminateProcess and more.
>
>I need the shutdown to properly notify any DLL's so there aren't any
garbage
>left in memory. ExitProcess seems to do the job but how??? It only shut
down
>the process where I call it from.
>
>TerminateProcess works but it seems to be a violent way to shut down.
>
>
-
Re: Closing a different application
The polite way is to PostMessage() its main window with a WM_CLOSE.
Jim Deutch
MS Dev MVP
Magnus wrote in message <390957f4$1@news.devx.com>...
>
>Anyone who knows a descent way to properly close another application? I've
>been struggling with a number of api's such as TerminateProcess and more.
>
>I need the shutdown to properly notify any DLL's so there aren't any
garbage
>left in memory. ExitProcess seems to do the job but how??? It only shut
down
>the process where I call it from.
>
>TerminateProcess works but it seems to be a violent way to shut down.
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|