vds17

summary: invoke the structure offset-choosing dialog from decompilation

description:

Registers an action opens the “Select offsets” widget (select_udt_by_offset() call).

This effectively repeats the functionality already available through Alt+Y.

Place cursor on the union field and press Shift+T

level: advanced

Classes

func_stroff_ah_t

my_plugin_t

Base class for all scripted plugins.

Functions

PLUGIN_ENTRY()

Module Contents

class vds17.func_stroff_ah_t

Bases: ida_kernwin.action_handler_t

activate(ctx)

Activate an action. This function implements the core behavior of an action. It is called when the action is triggered, from a menu, from a popup menu, from the toolbar, or programmatically.

Returns:

non-zero: all IDA windows will be refreshed

update(ctx)

Update an action. This is called when the context of the UI changed, and we need to let the action update some of its properties if needed (label, icon, …) In addition, this lets IDA know whether the action is enabled, and when it should be queried for availability again. Note: This callback is not meant to change anything in the application’s state, except by calling one (or many) of the “update_action_*()” functions on this very action.

class vds17.my_plugin_t

Bases: ida_idaapi.plugin_t

Base class for all scripted plugins.

flags = 16
wanted_name = 'Structure offsets (IDAPython)'
wanted_hotkey = ''
comment = 'Sample plugin17 for Hex-Rays decompiler'
help = ''
init()
term()
run(arg)
vds17.PLUGIN_ENTRY()