MacOSX:确定进程(给定PID)是否以32位或64位Intel模式运行 [英] MacOSX: find out if a process (given a PID) is running in 32bit or in 64bit Intel mode

查看:63
本文介绍了MacOSX:确定进程(给定PID)是否以32位或64位Intel模式运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个PID,我想确定进程是在32位还是64位Intel模式下运行.怎么样?

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]

返回但这仅适用于GUI应用程序...

This works only for GUI applications, though...

这篇关于MacOSX:确定进程(给定PID)是否以32位或64位Intel模式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆