def is_x64(): ''' is the currently loaded module 64-bit x86? ''' inf = idaapi.get_inf_structure() return inf.procName == 'metapc' and inf.is_32bit() and inf.is_64bit()