ShutdownReason Enumeration

Flags for reason parameter of ExitWindowsEx(ExitwindowsExFlags, ShutdownReason) function.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum ShutdownReason

Remarks

Members

Other 0 Other issue.
MinorMaintenance 1 Maintenance.
MinorInstallation 2 Installation.
MinorUpgrade 3 Upgrade.
MinorReconfig 4 Reconfigure.
MinorHung 5 Unresponsive.
MinorUnstable 6 Unstable.
MinorDisk 7 Disk.
MinorProcessor 8 Processor.
MinorNetworkCard 9 Network card.
MinorPowerSupply 10 Power supply.
MinorCordUnplugged 11 Unplugged.
MinorEnvironment 12 Environment.
MinorHardwareDriver 13 Driver.
MinorOtherDriver 14 Other driver event.
MinorBlueScreen 15 Blue screen crash event.
MinorServicePack 16 Service pack.
MinorHotfix 17 Hot fix.
MinorSecurityFix 18 Security patch.
MinorSecurity 19 Security issue.
MinorNetworkConnectivity 20 Network connectivity.
MinorWmi 21 WMI issue.
MinorServicePackUninstall 22 Service pack uninstallation.
MinorHotfixUninstall 23 Hot fix uninstallation.
MinorSecurityFixUninstall 24 Security patch uninstallation.
MinorMmc 25 MMC issue.
MinorTermSrv 32 Terminal Services.
MajorHardware 65,536 Hardware issue.
MajorOperatingSystem 131,072 Operating system issue.
MajorSoftware 196,608 Software issue.
MajorApplication 262,144 Application issue.
MajorSystem 327,680 System failure..
MajorPower 393,216 Power failure.
MajorLegacyApi 458,752 The InitiateShutdown(String, String, Int32, UInt32, UInt32) function was used instead of InitiateSystemShutdownEx function.
FagUserDefined 1,073,741,824 The reason code is defined by the user.

If this flag is not present, the reason code is defined by the system.

FagUserPlanned 2,147,483,648 The shutdown was planned.

The system generates a System State Data (SSD) file. This file contains system state information such as the processes, threads, memory usage, and configuration.

If this flag is not present, the shutdown was unplanned.

Notification and reporting options are controlled by a set of policies. For example, after logging in, the system displays a dialog box reporting the unplanned shutdown if the policy has been enabled.

An SSD file is created only if the SSD policy is enabled on the system.

See Also