Re: How can I tell if another process is 32 or 64 bit
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com -- Terry On May 1, 2010, at 12:32 PM, Alexander von Below <below@mac.com> wrote: sysctl will probably give you that info. Alex Am 01.05.2010 um 21:16 schrieb Matthew Mashyna: Thanks, Matt _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/below%40mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... But if you use this method instead of libproc, expect to break in the next release because data interfaces are definitionally fragile. Also libproc is not a supported interface at this time (see the header file). What reasonable reason do you have for this? You are aware that 32 bit will be deprecated at some point for performance reasons, right? Check the call for CTL_KERN, KERN_PROC, and the returned struct extern_proc While I do not know which flag to check exactly, this piece of code may help you: http://www.opensource.apple.com/source/xnu/xnu-792.12.6/bsd/kern/kern_sysctl... I have an app that acts as a monitor for some other critical apps and one thing the spec calls for is the need to look at other running apps and figure out if they are running in 32 or 64 bit mode. The Activity monitor knows this. How can I find a process's bit-ness? This email sent to below@mac.com This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert