Entry | |
---|---|
R0 | Last known Wimp version x 100 |
R1 | “TASK” (&4B534154) |
R2 | Pointer to description string to display in Task Manager |
R3 | Pointer to list of acceptable User Messages |
Exit | |
---|---|
R0 | Current Wimp version x 100 |
R1 | Task handle |
The purpose of this call is to register a task with the Wimp.
This call should only be used once when starting up. And before a task closes, it should call Wimp_CloseDown.
The input R0 value should indicate the version of the Wimp that your application was developed for. The Wimp will use this information to adjust its behaviour, so that your program can still run as intended when running under a newer Wimp.
The interpretation of R3 depends on the input R0 value (and ultimately, on whether the current Wimp version is >= R0):
The task can add or delete messages that it can respond to by Wimp_AddMessages and Wimp_RemoveMessages.