def SetProcessorType (processor, level):
"""
Change current processor
@param processor: name of processor in short form.
run 'ida ?' to get list of allowed processor types
@param level: the power of request:
- SETPROC_COMPAT - search for the processor type in the current module
- SETPROC_ALL - search for the processor type in all modules
only if there were not calls with SETPROC_USER
- SETPROC_USER - search for the processor type in all modules
and prohibit level SETPROC_USER
- SETPROC_FATAL - can be combined with previous bits.
means that if the processor type can't be
set, IDA should display an error message and exit.
"""
return idaapi.set_processor_type(processor, level)
评论列表
文章目录