Funzione PowerManagement_ForceSystemRebootPowerManagement_ForceSystemReboot Function
Intestazione: #include <applibs/powermanagement.h>Header: #include <applibs/powermanagement.h>
Forza un riavvio del sistema.Forces a system reboot. Il riavvio equivale a un ripristino hardware e comporta l'arresto e il riavvio del sistema.Reboot is equivalent to a hard reset and results in the system stopping and restarting.
int PowerManagement_ForceSystemReboot();
ParametriParameters
Questa funzione non ha parametri.This function has no parameters.
Valore restituitoReturn value
Restituisce 0 per l'esito positivo o-1 per l'esito negativo, nel qual caso errno
verrà impostato sul valore di errore.Returns 0 for success, or -1 for failure, in which case errno
will be set to the error value.
Requisiti del manifesto dell'applicazioneApplication manifest requirements
Per usare PowerManagement_ForceSystemReboot() , l'applicazione deve dichiarare il valore per ForceReboot nel campo PowerControls del manifesto dell'applicazione.To use PowerManagement_ForceSystemReboot(), your application must declare the ForceReboot value in the PowerControls field of the application manifest.