Determine if other process is running 32 or 64 bits
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