Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

A recent AVG and Avast antivirus update is preventing DisplayFusion 9.9 from launching on some systems.
If you're running into this issue, please update to the latest DisplayFusion 10.0 Beta.

Abort Shutdown

Description
This script will send the shutdown.exe /a command to abort a shutdown in progress.
Language
C#.net
Minimum Version
Created By
Efreak60952
Contributors
-
Date Created
Nov 18, 2016
Date Last Modified
Apr 5, 2017

Scripted Function (Macro) Code

using System;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Diagnostics;

public static class DisplayFusionFunction
{	
	public static void Run(IntPtr windowHandle)
	{
        Process proc = new Process();
        proc.StartInfo.FileName = "CMD.exe";
        proc.StartInfo.CreateNoWindow = true;
        proc.StartInfo.Arguments = "/c shutdown.exe /a";
        proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
        proc.Start();
        proc.WaitForExit();
	}
}