| 
            
              WindowsApiInitiateSystemShutdownEx Method
             | 
          
        
        
            Win32 InitiateSystemShutdownEx function.
            
        
        Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
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 Booleanpublic:
[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