Re: Determine if other process is running 32 or 64 bits

2011-02-16 Thread Greg Parker
On Feb 16, 2011, at 3:59 PM, Jerry Krinock wrote: > On 2011 Feb 16, at 12:05, Ken Thomases wrote: > >> If it's actually an application, and you can target 10.6, use >> -[NSRunningApplication executableArchitecture]. > > Thanks, but need 10.5 support. > > I suppose I could spend hours searching

Re: Determine if other process is running 32 or 64 bits

2011-02-16 Thread Jerry Krinock
On 2011 Feb 16, at 12:05, Ken Thomases wrote: > If it's actually an application, and you can target 10.6, use > -[NSRunningApplication executableArchitecture]. Thanks, but need 10.5 support. > Otherwise, you can use sysctl() as illustrated in this Tech Q&A >

Re: Determine if other process is running 32 or 64 bits

2011-02-16 Thread Sean McBride
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 t

Re: Determine if other process is running 32 or 64 bits

2011-02-16 Thread Ken Thomases
On Feb 16, 2011, at 1:44 PM, Jerry Krinock wrote: > 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 th

Determine if other process is running 32 or 64 bits

2011-02-16 Thread Jerry Krinock
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 fo