Click or drag to resize

WindowsApiInitiateSystemShutdownEx Method

Win32 InitiateSystemShutdownEx function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static bool InitiateSystemShutdownEx(
	string lpMachineName,
	string lpMessage,
	uint dwTimeout,
	bool bForceAppsClosed,
	bool bRebootAfterShutdown,
	WindowsApiShutdownReason dwReason
)
View Source

Parameters

lpMachineName  String
 
lpMessage  String
 
dwTimeout  UInt32
 
bForceAppsClosed  Boolean
 
bRebootAfterShutdown  Boolean
 
dwReason  WindowsApiShutdownReason
 

Return Value

Boolean
See Also