AdvApi32AbortSystemShutdown Method

Aborts a system shutdown that has been initiated.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("AdvApi32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool AbortSystemShutdown(
	string machineName = "127.0.0.1"
)

Parameters

machineName  String  (Optional)
The network name of the computer where the shutdown is to be stopped.

If this parameter is or an empty string, the function aborts the shutdown on the local computer.

Return Value

Boolean
if the function succeeds, otherwise.

Remarks

See Also