/// <summary>Stops a system shutdown started by using the InitiateSystemShutdown function.</summary> /// <param name="machineName"> /// String that specifies the network name of the computer where the shutdown is to be stopped. If NULL or an empty string, the function stops the /// shutdown on the local computer. /// </param> /// <returns>0 on failure, non-zero for success</returns> public static bool AbortShutdown(string machineName = null) => AdvApi32.AbortSystemShutdown(machineName);