FindnameW

int FindnameW(ulong addr,int type,wchar_t *name,int nname);

Searches for symbolic name of given type associated with address addr. On error, or if there is no associated name, returns 0. If name exists but argument name is NULL, returns 1. On success, copies name to the buffer (truncating if buffer is too small) and returns number of copied wide characters, not including the terminal null.


Parameters:

addr
(in) Name address. The meaning of this parameter depends on the type. For example, for NM_LABEL this is the address of the labelled memory in the contents of the debugged application. For NM_LABELSAV, it is the index (0..NSTRINGS-1) in the list of last entered labels
type
(in) Name type. Use predefined constants NM_xxx for names created and maintained by OllyDbg. Plugins are free to use custom types that may be reserved by Plugingetuniquedatatype()
name
(out) Buffer of size at least nname wide characters that receives the symbolic name, or NULL if name itself is not necessary and function is called only to determine whether name exists or not
nname
(in) Size of name in wide characters, ignored if name is NULL


Return values:

On error, or if there is no associated name, returns 0. If name exists but argument name is NULL, returns 1. On success, returns number of copied wide characters, not including the terminal null


Example:

(as yet none).


See also:

Data functions, FindaddressW(), Findlabel(), FindnextnameW(), FindnextnamelistW(), InsertnameW(), Plugingetuniquedatatype(), QuickinsertnameW(), Startnextnamelist()