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

落花浮王杯 提交于 2019-12-22 12:40:09

问题


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


回答1:


I can do via NSRunningApplication.

[[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture]

returns the Mach-O architecture constant.

This works only for GUI applications, though...



来源:https://stackoverflow.com/questions/7335245/macosx-find-out-if-a-process-given-a-pid-is-running-in-32bit-or-in-64bit-inte

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!