Re: Quit Application



In article <1190986535.239450@xxxxxxxxxxxxxxxxxx>,
Michael Ash <mike@xxxxxxxxxxx> wrote:

p2 <pradip.patel@xxxxxxxxxxxxxx> wrote:
Hi

How can i quit Application from other application ?

I have following details
->application path

Is there any API to send quit event to other application ?

Send it a Quit Apple Event. Code for how to do this seems a bit scarce but
this may get you started:

http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/cr
eate_send_aepg/chapter_7_section_4.html

Robustly turning a string that happens to be a file system path into an
identifier for a running process is the tricky part of this. I haven't
been able to think of a truly reliable way to do it, although I can
think of a couple of 99% solutions.
.



Relevant Pages

  • Re: Gracefully shutting down a thread in a DLL
    ... before PROCESS_DETACH is called by the loader. ... Perhaps if you hook the ... "ExitProcess" API so that you're noted when the application wants to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Quit Application
    ... Is there any API to send quit event to other application? ... Rogue Amoeba Software ...
    (comp.sys.mac.programmer.help)
  • Re: Gracefully shutting down a thread in a DLL
    ... before PROCESS_DETACH is called by the loader. ... Perhaps if you hook the ... "ExitProcess" API so that you're noted when the application wants to ...
    (microsoft.public.win32.programmer.kernel)

Loading