Showing changes from revision #4 to #5:
Added | Removed | Changed
Entry | |
---|---|
R0 | Reason Code |
R1 | Pointer to message block |
R2 | Destination task handle, or |
Destination window handle, or | |
– 2 for creator of icon handle in R3, or | |
0 to broadcast to all (including self) | |
R3 | Icon handle (if R2 = -2) |
Exit | |
---|---|
R0 | Corrupt |
R2 | Handle of destination task (if not broadcast) |
Block | Updated |
The purpose of this call is to send a message either to a particular task or to all tasks.
All messages are passed around the Wimp using this call.
Tasks are notified of incoming messages via Wimp_Poll.
The type of message to be sent is dependant on the reason code value.
The message block in R1 should be in the format specified by the particular Reason Code being used in R0.
When replaying to a message, R2 should be the task handle of the original message.
Reason code values of 1 to 12 can be used to inform another task about a window, mouse, icon etc…
Reason codes of 17 to 19 are user messages and are the most common type of message to send.