MacOSX: find out if a process (given a PID) is running in 32bit or in 64bit Intel mode
Asked Answered
I

1

2

I have a PID and I want to find out if the process is running in 32bit or in 64bit Intel mode. How?

Immaterialism answered 7/9, 2011 at 14:6 Comment(0)
I
4

I can do via NSRunningApplication.

[[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture]

returns the Mach-O architecture constant.

This works only for GUI applications, though...

Immaterialism answered 7/9, 2011 at 14:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.