Function

Gumprocess_modify_thread

Declaration [src]

gboolean
gum_process_modify_thread (
  GumThreadId thread_id,
  GumModifyThreadFunc func,
  gpointer user_data,
  GumModifyThreadFlags flags
)

Description [src]

Modifies a given thread by first pausing it, reading its state, and then passing that to func, followed by writing back the new state and then resuming the thread. May also be used to inspect the current state without modifying it.

Parameters

thread_id

Type: GumThreadId

ID of thread to modify.

func

Type: GumModifyThreadFunc

Function to apply the modifications.

user_data

Type: gpointer

Data to pass to func.

The argument can be NULL.
The data is owned by the caller of the function.
flags

Type: GumModifyThreadFlags

Flags to customize behavior.

Return value

Type: gboolean

Whether the modifications were successfully applied.