Re: Determine if other process is running 32 or 64 bits
Re: Determine if other process is running 32 or 64 bits
- Subject: Re: Determine if other process is running 32 or 64 bits
- From: "Sean McBride" <email@hidden>
- Date: Wed, 16 Feb 2011 15:07:14 -0500
- Organization: Rogue Research Inc.
On Wed, 16 Feb 2011 11:44:22 -0800, Jerry Krinock said:
>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.
NSRunningApplication executableArchitecture
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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