• 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
Determine if other process is running 32 or 64 bits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determine if other process is running 32 or 64 bits


  • Subject: Determine if other process is running 32 or 64 bits
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 16 Feb 2011 11:44:22 -0800

I need my app to determine if *another* app is running in 32-bit or 64-bit mode.  I have found that I can do that with this unix command:

   ps -ax -o flags -o command | grep TargetAppExecutableName

The 3rd least significant bit of the 'flags' is 'LP64', which is 1 for a 64-bit process and 0 for a 32-bit process.

Is there a better way to do this?  I tried the processMode returned in the ProcessInfoRec GetProcessInfo(), but it has no 32/64 bit distinction.

Thanks,

Jerry Krinock

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Determine if other process is running 32 or 64 bits
      • From: "Sean McBride" <email@hidden>
    • Re: Determine if other process is running 32 or 64 bits
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Tracking a EXC_BAD_ACCESS when zombies don't work
  • Next by Date: Re: Determine if other process is running 32 or 64 bits
  • Previous by thread: Re: How to optimize image loading during core animation?
  • Next by thread: Re: Determine if other process is running 32 or 64 bits
  • Index(es):
    • Date
    • Thread