|
WindowsApiInitiateSystemShutdownEx Method
|
Win32 InitiateSystemShutdownEx function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
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
)
<DllImportAttribute("advapi32.dll", CharSet := CharSet.Auto, SetLastError := true>]
Public Shared Function InitiateSystemShutdownEx (
lpMachineName As String,
lpMessage As String,
dwTimeout As UInteger,
bForceAppsClosed As Boolean,
bRebootAfterShutdown As Boolean,
dwReason As WindowsApiShutdownReason
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Auto, SetLastError = true)]
static bool InitiateSystemShutdownEx(
String^ lpMachineName,
String^ lpMessage,
unsigned int dwTimeout,
bool bForceAppsClosed,
bool bRebootAfterShutdown,
WindowsApiShutdownReason dwReason
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)>]
static member InitiateSystemShutdownEx :
lpMachineName : string *
lpMessage : string *
dwTimeout : uint32 *
bForceAppsClosed : bool *
bRebootAfterShutdown : bool *
dwReason : WindowsApiShutdownReason -> bool
GSF.Interop.WindowsApi.InitiateSystemShutdownEx = function(lpMachineName, lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown, dwReason);
View SourceParameters
- lpMachineName String
-
- lpMessage String
-
- dwTimeout UInt32
-
- bForceAppsClosed Boolean
-
- bRebootAfterShutdown Boolean
-
- dwReason WindowsApiShutdownReason
-
Return Value
Boolean
See Also