Étape 10 : Ajout de Codes « D »
maintenant, double-cliquez sur le bouton sleep et ajouter ces codes
ADD THIS DLL ABOVE SLEEP BUTTON = BUTTON 4[DllImport("PowrProf.dll", CharSet = CharSet.Auto, ExactSpelling = true)]public static extern bool SetSuspendState(bool hiberate, bool forceCritical, bool disableWakeEvent);ADD THIS TO THE ACTUAL SLEEP BUTTONSetSuspendState(false, true, true);