ExitwindowsExFlags 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 ExitwindowsExFlags
<FlagsAttribute>
Public Enumeration ExitwindowsExFlags
Dim instance As ExitwindowsExFlags
[FlagsAttribute]
public enum class ExitwindowsExFlags
[<FlagsAttribute>]
type ExitwindowsExFlags
No code example is currently available or this language may not be supported.
LogOff |
0 |
Shuts down all processes running in the logon session of the current process.
Then it logs the user off.
This flag can be used only by processes running in an interactive user's logon session.
|
ShutDown |
1 |
Shuts down the system to a point at which it is safe to turn off the power.
All file buffers have been flushed to disk, and all running processes have stopped.
The calling process must have the SE_SHUTDOWN_NAME privilege.
Specifying this flag will not turn off the power even if the system supports the power-off feature,
You must use PowerOff to do this.
|
Reboot |
2 |
Shuts down the system and then restarts the system.
The calling process must have the SE_SHUTDOWN_NAME privilege
|
Force |
4 |
This flag has no effect if terminal services is enabled.
Otherwise, the system does not send the WM_QUERYENDSESSION message.
This can cause applications to lose data.
Therefore, you should only use this flag in an emergency.
|
PowerOff |
8 |
Shuts down the system and turns off the power.
The system must support the power-off feature.
The calling process must have the SE_SHUTDOWN_NAME privilege.
|
ForceIfHung |
16 |
Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or
WM_ENDSESSION message within the timeout interval.
|
RestartApps |
64 |
Shuts down the system and then restarts it,
as well as any applications that have been registered for restart using the RegisterApplicationRestart function.
These application receive the WM_QUERYENDSESSION message with lParam set to the ENDSESSION_CLOSEAPP value.
For more information, see Guidelines for Applications:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa373651%28v=vs.85%29.aspx |
HybridShutdown |
4,194,304 |
( Beginning with Windows 8 )
You can prepare the system for a faster startup by combining the
HybridShutdown flag with the
ShutDown flag.
|