h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_CloseDown h2. Wimp_CloseDown h5. (SWI &400DD) |_<. Entry | | |R0 |Task handle returned by [[Wimp_Initialise|Wimp_Initialise]] | |R1 |"TASK" (&4B534154) | |_<. Exit | | |R0 |Corrupt | h4. Use The purpose of this call is to inform the Wimp that a task is about to terminate. h4. Notes This must be called immediately before the task terminates by calling [[OS_Exit|OS_Exit]]. If it is not, then the task has a last chance to trap its shutdown by means of the [[Service_WimpCloseDown|Service_WimpCloseDown]] (which will also be called if the task exits normally). The task handle and magic word are only required if closing a task which is not presently paged in. e.g a module. h4. See also * [[OS_Exit|OS_Exit]] * [[Service_WimpCloseDown|Service_WimpCloseDown]] * [[Wimp_Initialise|Wimp_Initialise]]