Method

GumStalkerrun_on_thread

Declaration [src]

gboolean
gum_stalker_run_on_thread (
  GumStalker* self,
  GumThreadId thread_id,
  GumStalkerRunOnThreadFunc func,
  gpointer data,
  GDestroyNotify data_destroy
)

Description [src]

Arranges for func to run on the thread identified by thread_id, with that thread’s register state, by briefly hijacking it through Stalker. Returns once func has been scheduled; it may not have run yet. Use gum_stalker_run_on_thread_sync() to wait for completion.

Parameters

thread_id

Type: GumThreadId

ID of the thread to run func on.

func

Type: GumStalkerRunOnThreadFunc

Function to run on the target thread.

data

Type: gpointer

Data to pass to func.

The argument can be NULL.
The data is owned by the caller of the method.
data_destroy

Type: GDestroyNotify

Destroy notify for data.

The argument can be NULL.

Return value

Type: gboolean

TRUE if the request was accepted.