2

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

Albert
  • 61,575
  • 58
  • 224
  • 362

1 Answers1

4

I can do via NSRunningApplication.

[[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture]

returns the Mach-O architecture constant.

This works only for GUI applications, though...

Albert
  • 61,575
  • 58
  • 224
  • 362