h6. [[TaskManager]] h6(. » [[TaskManager SWI Calls|SWI Calls]] h6((. » TaskManager_Shutdown h2. TaskManager_Shutdown h5. (SWI &42682) |_<^. Entry | | |<^. R0 |<^. Shutdown types (see below) | |_<^. Exit || |<. - |<^. - | h4. Use This call initiates a desktop shutdown. The actions performed are controlled by the following shutdown flags: |_<^{width:5em}. Bit |_<^. Meaning when set | |<^. 0 |<^. Exit to command prompt once shutdown is complete| |<^. 1 |<^. Do not broadcast [[Message_PreQuit]]| |<^. 2 |<^. Set flag in CMOS as portable PowerDown| |<^. 3 |<^. Send a [[Message_Shutdown]]| |<^. 4 |<^. Reject [[OS_UpCall]] 1 & 2 reason codes| |<^. 5 |<^. Reboot machine once shutdown is complete[1]| |<^. 6 |<^. Power off machine once shutdown is complete[2]| |<^. 7 |<^. Skip running of PostDesk scripts[3]| |<^. 8-31 |<^. Must be 0| h4. Notes If bit 2 is set, then it is flagged in CMOS that the last shutdown was forced by a low battery, and a message stating this reason will be displayed upon next Desktop start. fn1. TaskManager 1.10 (RISC OS 4.01) or TaskManager 1.36 (RISC OS 5.19) onwards fn2. TaskManager 1.44 (RISC OS 4.39) or TaskManager 1.36 (RISC OS 5.19) onwards fn3. TaskManager 1.37 (RISC OS 5.19) onwards h4. See also * [[TaskManager_EnumerateTasks]] * [[TaskManager_TaskNameFromHandle]] * [[OS_Reset]]