SetSuspendState

[DllImport("powrprof.dll", SetLastError = true)]
public static extern bool SetSuspendState(
   bool Hibernate,
   bool ForceCritical,
   bool DisableWakeEvent
);

Microsoft documentation: Linkarrow-up-right

Last updated