예제 #1
0
static gboolean
gum_store_address_if_module_has_export (const GumModuleDetails * details,
                                        gpointer user_data)
{
  GumFindExportContext * ctx = user_data;

  gum_module_enumerate_exports (details->path,
      gum_store_address_if_export_name_matches, ctx);

  return ctx->result == 0;
}
예제 #2
0
GumAddress
gum_module_find_export_by_name (const gchar * module_name,
                                const gchar * symbol_name)
{
  GumFindExportContext ctx;

  ctx.result = 0;
  ctx.symbol_name = symbol_name;

  gum_module_enumerate_exports (module_name,
      gum_store_address_if_export_name_matches, &ctx);

  return ctx.result;
}