Decoderelativeoffset

OllyDbg Plugin API

Decoderelativeoffset

If address points to a valid command within the named procedure, decodes address in form "module.procedure+offset" or "procedure+offset". Returns length of decoded string or 0 on error or when procedure is not named.

int Decoderelativeoffset(ulong addr,int addrmode,char *symb,int nsymb);

Parameters:

addr - absolute address to decode;

addrmode - combination of ADC_xxx bits listed below, determines how to decode addr. Note that Decodeaddress does not support some of ADC_xxx declared in plugin.h:

ADC_NOMODNAME if bit is cleared, prepend name of procedure with module name, otherwise module name is omitted
ADC_NONTRIVIAL if offset is 0, do not decode relative offset

symb - pointer to buffer of length at least nsymb bytes where Decoderelativeoffset places decoded string;

nsymb - length, in characters, of buffer symb.

See also: Decodeaddress, Decoderange