// Get address of the specified field using the type information // ea - address of the strcture // field_name - name of the structure field // If the database contains a structurue at the specified ea and the // type information is present, this function will return the address of the // structure field.long get_field_ea(long ea, string field_name);
For example:
.data:00413060 errtable dd 1 ; oscode .data:00413060 dd 16h ; errnocodeMessage("address is: %x\n", _errtable.errnocode);prints 413064.