简体   繁体   中英

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

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

I can do via NSRunningApplication .

[[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture]

returns the Mach-O architecture constant .

This works only for GUI applications, though...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM