Re: How to know if Classic is running?
Re: How to know if Classic is running?
- Subject: Re: How to know if Classic is running?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 17 Apr 2003 00:06:36 -0700
On Wednesday, April 16, 2003, at 06:38 PM, Karl Goiser wrote:
I suppose you would do this by looking to see if the 'TruBlueEnv'
process is running?
AFAIK, there is no way to do this by using Cocoa. I can think of three
ways of solving this problem...
1. (Best) Use the sysctl() function to get a list of processes from the
kernel, then check to see if TruBlueEnvironment is present. See the
sysctl() function (not the program) man page and the header files for
details.
2. Use GetNextProcess() and GetProcessIdentification() from the Carbon
Process Manager.
3. (Not recommended) Scan the virtual memory table for the process
using the KVM APIs... This works, but only if your application is being
run by root. The above two work if they are run by a non-super user.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.