def is_process_64(pid):
 is64 = False
 if (not ('64' in platform.machine())):
  return False
 hProcess = windll.kernel32.OpenProcess(PROCESS_QUERY_INFORMATION, False, pid)
 if (hProcess == INVALID_HANDLE_VALUE):
  raise WinError("can't OpenProcess for PROCESS_QUERY_INFORMATION. Insufficient privileges ?")
 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 , False , pid ) if ( hProcess == INVALID_HANDLE_VALUE ) : raise WinError ( "can't OpenProcess for PROCESS_QUERY_INFORMATION. Insufficient privileges ?" ) is64 = is_process_64_from_handle ( hProcess ) windll . kernel32 . CloseHandle ( hProcess ) return is64
take a pid .