Is there a way to check if process is 64 bit or 32 bit?
问题 I am trying to find process type (32 bit/ 64bit) from process pid? I get the process information and process list from using GetBSDProcessList method described here. how can we get the process type information? Any Ideas? I can use defined( i386 ) or defined( x86_64 ) but only if we are in process. I am out of the process. 回答1: GetBSDProcessList returns a kinfo_proc . The kinfo_proc has a kp_proc member which is of type extern_proc. The extern_proc has a p_flag member, which one of the flags