EvtHandler
struct · core · 24 bytes
- Meaning
- Holds a registered handler: its link, function, argument, priority and skip flag
- Confidence
- verified, proof two
- Finding
- core/events#handler-records
Finding: Handler records in core: events
A handler is a 0x18-byte record in its category's list: a link, the function, its argument, a
float priority, and a skip flag at +0x14. A list's head is 12 bytes at +0x5c + 12·category
of the context: the link offset 0, then the end link. The function is called as
fastcall(payload, argument) and returns nonzero to let the dispatch go on.
The derivation is in the doc.
Fields 5
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 8 | void *[2] | m_link | Holds the record's link in its category list | verified, proof two | core/events#handler-records |
0x0008 | 4 | void * | m_handler | Holds the function, called as fastcall(payload, argument) | verified, proof two | core/events#handler-records |
0x000c | 4 | void * | m_argument | Holds the argument passed in edx | verified, proof two | core/events#handler-records |
0x0010 | 4 | float | m_priority | Holds the priority; higher runs first | verified, proof two | core/events#handler-order |
0x0014 | 4 | uint32_t | m_skip | Holds nonzero for a record the dispatch and registration pass over | verified, proof two | core/events#handler-order |