h6. [[WindowManager]] h6(. » [[WindowManager Service Calls|Service Calls]] h6((. » Service_WimpCloseDown h2. Service_WimpCloseDown h5. (Service Call &53) |_<{width:3em}. Entry | | |/2^. R0 |<^. 0 if [[Wimp_CloseDown]]| |<^. >0 if starting new task | |<^. R1 |<^. 83 (&53) | |<^. R2 |<^. Taskhandle | |_<{width:3em}. Exit | | |<^. R0 |<^. Preserved, or set to [[SWI Error Block|Error Block]] to stop start-up | h4. Use This is used to notify when the Window Manager is about to close a task. h4. Notes This service call is broadcast when a task exits using [[Wimp_CloseDown]], or when [[Wimp_Initialise]] is called from within a task that is already initialised. If a task exits without calling Wimp_CloseDown or if an error occurs and the task does not trap it, then the Wimp will call this service so that it still has a chance to shut any jobs it may have active. If the ‘starting task’ form of this service is called then the usual response is to return an error in R0 similar to ‘Wimp is currently active’. h4. See also * [[Service Calls]] * [[Wimp_CloseDown]] * [[Wimp_Initialise]]