2
J'ai un PID et je veux savoir si le processus fonctionne en 32 bits ou en 64 bits Intel. Comment?MacOSX: savoir si un processus (donné un PID) fonctionne en 32 bits ou en mode Intel 64 bits
J'ai un PID et je veux savoir si le processus fonctionne en 32 bits ou en 64 bits Intel. Comment?MacOSX: savoir si un processus (donné un PID) fonctionne en 32 bits ou en mode Intel 64 bits
Je peux le faire via NSRunningApplication
.
[[NSRunningApplication runningApplicationWithProcessIdentifier:pid] executableArchitecture]
renvoie Mach-O architecture constant.
Ceci ne fonctionne que pour les applications graphiques, bien que ...