Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 22 of file shutdown.c.
Referenced by HandleShutdown(), InitiateSystemShutdownW(), RunUSetup(), and WinMain().
{ POWER_ACTION PowerAction; /* Convert to power action */ if (Action == ShutdownNoReboot) { PowerAction = PowerActionShutdown; } else if (Action == ShutdownReboot) { PowerAction = PowerActionShutdownReset; } else if (Action == ShutdownPowerOff) { PowerAction = PowerActionShutdownOff; } else { return STATUS_INVALID_PARAMETER; } /* Now call the power manager */ DPRINT1("Setting state to: %lx\n", PowerAction); return NtSetSystemPowerState(PowerAction, PowerSystemSleeping3, POWER_ACTION_OVERRIDE_APPS | POWER_ACTION_DISABLE_WAKES | POWER_ACTION_CRITICAL); }