Del via


PowerManagement_ForceSystemReboot Function

Header: #include <applibs/powermanagement.h>

Forces a system reboot. Reboot is equivalent to a hard reset and results in the system stopping and restarting.

int PowerManagement_ForceSystemReboot();

Parameters

This function has no parameters.

Return value

Returns 0 for success, or -1 for failure, in which case errno will be set to the error value.

Application manifest requirements

To use PowerManagement_ForceSystemReboot(), your application must declare the ForceReboot value in the PowerControls field of the application manifest.