2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: ShutdownA() - Shut down the operating system, Windows-hosted implementation.
9 #include <aros/debug.h>
11 #include "exec_intern.h"
13 AROS_LH1(ULONG
, ShutdownA
,
14 AROS_LHA(ULONG
, action
, D0
),
15 struct ExecBase
*, SysBase
, 173, Exec
)
19 /* WinAPI CreateProcess() call may silently abort if scheduler attempts task switching
20 while it's running. There's no sense in this beyond this point, so we simply Disable() */
25 case SD_ACTION_POWEROFF
:
26 PD(SysBase
).ExitProcess(0);
29 case SD_ACTION_COLDREBOOT
:
30 PD(SysBase
).Reboot(FALSE
);