| IDA SDK

Functions
Link between vftable types and addresses

## Detailed Description

## Functions
idaman ea_t ida_export | get_vftable_ea (uint32 ordinal)
| Get address of a virtual function table. More...
idaman uint32 ida_export | get_vftable_ordinal (ea_t vftable_ea)
| Get ordinal number of the virtual function table. More...
idaman bool ida_export | set_vftable_ea (uint32 ordinal, ea_t vftable_ea)
| Set the address of a vftable instance for a vftable type. More...
bool | del_vftable_ea (uint32 ordinal)
| Delete the address of a vftable instance for a vftable type. More...

## Function Documentation

## ◆ get_vftable_ea()

idaman ea_t ida_export get_vftable_ea | ( | uint32 | ordinal | ) |

Get address of a virtual function table.

Parameters

  ordinal | ordinal number of a vftable type.

Returns
  address of the corresponding virtual function table in the current database.

## ◆ get_vftable_ordinal()

idaman uint32 ida_export get_vftable_ordinal | ( | ea_t | vftable_ea | ) |

Get ordinal number of the virtual function table.

Parameters

  vftable_ea | address of a virtual function table.

Returns
  ordinal number of the corresponding vftable type. 0 - failure.

## ◆ set_vftable_ea()

idaman bool ida_export set_vftable_ea | ( | uint32 | ordinal,
|  | ea_t | vftable_ea
| ) |  |

Set the address of a vftable instance for a vftable type.

Parameters

  vftable_ea | address of a virtual function table.
  ordinal | ordinal number of the corresponding vftable type.

Returns
  success

## ◆ del_vftable_ea()

bool del_vftable_ea | ( | uint32 | ordinal | ) |
| inline

Delete the address of a vftable instance for a vftable type.

Parameters

  ordinal | ordinal number of a vftable type.

Returns
  success