Decodename

OllyDbg Plugin API

Decodename

Searches for name with given address and type. If name is found, scans it for combinations <+XXXXXXXX>, where XXXXXXXX is a hexadecimal number, and substitutes them by sum of base and XXXXXXXX in hexadecimal format. Returns length of resulting string or 0 if name is absent. OllyDbg uses this function to correct automatically generated comments in relocatable modules.

int Decodename(ulong addr,int type,char *name);

Parameters:

addr - name address;

type - name type (NM_xxx for predefined types);

name - pointer to output buffer of length at least TEXTLEN characters.

See also: Findname, Findlabel, Findlabelbyname, Findimportbyname