Windows
|
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)] public static bool InitiateSystemShutdownEx( string lpMachineName, string lpMessage, uint dwTimeout, bool bForceAppsClosed, bool bRebootAfterShutdown, WindowsApiShutdownReason dwReason )