(pid)
return is64
Take a pid. return True if process is 64 bits, and False otherwise.
Take a pid. return True if process is 64 bits, and False otherwise.
Take a pid . return True if process is 64 bits and False otherwise .
def is_process_64(pid):
	""" Take a pid. return True if process is 64 bits, and False otherwise. """
	is64=False
	if not "64" in platform.machine():
		return False
	hProcess = windll.kernel32.OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, False, pid)
	is64=is_process_64_from_handle(hProcess)
	windll.kernel32.CloseHandle(hProcess)
	return is64
def is_process_64 ( pid ) : is64 = False if not "64" in platform . machine ( ) : return False hProcess = windll . kernel32 . OpenProcess ( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ , False , pid ) is64 = is_process_64_from_handle ( hProcess ) windll . kernel32 . CloseHandle ( hProcess ) return is64