| IDA SDK

Macros
Exec request flags

## Detailed Description

passed as 'reqf' parameter to execute_sync()

## Macros
#define | MFF_FAST 0x0000
| Execute code as soon as possible. More...
#define | MFF_READ 0x0001
| Execute code only when ida is idle and it is safe to query the database. More...
#define | MFF_WRITE 0x0002
| Execute code only when ida is idle and it is safe to modify the database. More...
#define | MFF_NOWAIT 0x0004
| Do not wait for the request to be executed. More...

## Macro Definition Documentation

## ◆ MFF_FAST

#define MFF_FAST 0x0000

Execute code as soon as possible.

this mode is ok for calling ui related functions that do not query the database.

## ◆ MFF_READ

#define MFF_READ 0x0001

Execute code only when ida is idle and it is safe to query the database.

This mode is recommended only for code that does not modify the database. (nb: ida may be in the middle of executing another user request, for example it may be waiting for him to enter values into a modal dialog box)

## ◆ MFF_WRITE

#define MFF_WRITE 0x0002

Execute code only when ida is idle and it is safe to modify the database.

in particular, this flag will suspend execution if there is a modal dialog box on the screen. this mode can be used to call any ida api function. MFF_WRITE implies MFF_READ

## ◆ MFF_NOWAIT

#define MFF_NOWAIT 0x0004

Do not wait for the request to be executed.

the caller should ensure that the request is not destroyed until the execution completes. if not, the request will be ignored. the request must be created using the 'new' operator to use it with this flag. it can be used in cancel_exec_request(). This flag can be used to delay the code execution until the next UI loop run even from the main thread.