InitiateShutdownFlags Enumeration
Namespace: DevCase.Win32.EnumsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum InitiateShutdownFlags
<FlagsAttribute>
Public Enumeration InitiateShutdownFlags
Dim instance As InitiateShutdownFlags
[FlagsAttribute]
public enum class InitiateShutdownFlags
[<FlagsAttribute>]
type InitiateShutdownFlags
No code example is currently available or this language may not be supported.
Wait |
0 |
Don't force the system to close the applications.
This is the default parameter.
|
ForceOthers |
1 |
All sessions are forcefully logged off.
If this flag is not set and users other than the current user are logged on to the computer
specified by the lpMachineName parameter.
|
ForceSelf |
2 |
Specifies that the originating session is logged off forcefully.
If this flag is not set, the originating session is shut down interactively,
so a shutdown is not guaranteed even if the function returns successfully.
|
Restart |
4 |
The computer is shut down and restarted.
|
PowerOff |
8 |
The computer is shut down and powered down.
|
Shutdown |
16 |
The computer is shut down but is not powered down or restarted.
|
GraceOverride |
32 |
Overrides the grace period so that the computer is shut down immediately.
|
InstallUpdates |
64 |
The computer installs any updates before starting the shutdown.
|
RestartApps |
128 |
The system is restarted using the ExitWindowsEx(ExitwindowsExFlags, ShutdownReason) function with the
RestartApps flag.
This restarts any applications that have been registered for restart
using the RegisterApplicationRestart function.
|
HybridShutdown |
512 |
( Beginning with Windows 8 )
Prepares the system for a faster startup by combining
the HybridShutdown flag with the
Shutdown flag.
InitiateShutdown(String, String, Int32, UInt32, UInt32) always initiate a full system shutdown if the
HybridShutdown flag is not set.
|