Re: Processes
Re: Processes
- Subject: Re: Processes
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 21 Jan 2002 19:17:10 +0000
On Monday, January 21, 2002, at 02:25 PM, Alex Keresztes wrote:
1. Does anyone know how to check if a specific application is running,
from cocoa or carbon?
See Processes.h in Carbon.
2. How can I send that application a quit message once I have
discovered if it is running?
A little more difficult. There is an API for this in CoreProcesses,
which is private. You could probably use GetPID() on the PSN and then
call kill() (man 2 kill) with SIGQUIT or SIGKILL.
-- Finlay
References: | |
| >Processes (From: Alex Keresztes <email@hidden>) |