using System;
using System.Runtime.InteropServices;
public static class DisplayFusionFunction
{
// Importamos la función SetSuspendState de la librería de energía de Windows
[DllImport("Powrprof.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
public static extern bool SetSuspendState(bool hiberate, bool forceCritical, bool disableWakeEvent);
public static void Run()
{
// Parámetros:
// false = Suspender (Standby), true = Hibernar
// false = No forzar cierre de aplicaciones críticamente
// false = Permitir eventos de reactivación (teclado/ratón)
SetSuspendState(false, false, false);
}
}