benilla-re systems structs docs

UnitNameFoundCallback

function · ui · orchestration

Address
0x517290 · 21 bytes, up to 0x5172a4
Signature
void __fastcall (uint32_t key, const uint64_t *guid, uint32_t data, uint8_t found)
Meaning
Signals UNIT_NAME_UPDATE for the tokens of a GUID when its name arrived
Confidence
verified, proof one
Finding
objectlayer/unitnames#unitnames-name-callback

Finding: UnitName's name callback in objectlayer: unit names and markers

The name cache calls 0x517290 when the asked name arrives: the key in ecx, a pointer to its kept copy of the asked GUID in edx, the data and the status on the stack (ret 8). Status 0, a refused name, does nothing. Status 1 calls NotifyUnitNameUpdate (0x491a00) with that pointer: it refreshes the tooltip and invalidates the name descriptor only when a unit object (mask 8) is held for the GUID, and always signals UNIT_NAME_UPDATE (event 183) once for each token that names the GUID, with the token as arg1 (SignalUnitEvent, 0x515e50). A name for a member out of view still reaches the frames that watch its token.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.