AdvApi32AbortSystemShutdown Method
Aborts a system shutdown that has been initiated.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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"
)
<DllImportAttribute("AdvApi32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function AbortSystemShutdown (
Optional machineName As String = "127.0.0.1"
) As Boolean
Dim machineName As String
Dim returnValue As Boolean
returnValue = AdvApi32.AbortSystemShutdown(machineName)
public:
[DllImportAttribute(L"AdvApi32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool AbortSystemShutdown(
String^ machineName = L"127.0.0.1"
)
[<DllImportAttribute("AdvApi32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member AbortSystemShutdown :
?machineName : string
(* Defaults:
let _machineName = defaultArg machineName "127.0.0.1"
*)
-> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean if the function succeeds,
otherwise.