• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to know if Classic is running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: How to know if Classic is running?
      • From: Finlay Dobbie <email@hidden>
References: 
 >How to know if Classic is running? (From: Karl Goiser <email@hidden>)

  • Prev by Date: Re: import PB project
  • Next by Date: AppleScript issue
  • Previous by thread: How to know if Classic is running?
  • Next by thread: Re: How to know if Classic is running?
  • Index(es):
    • Date
    • Thread