
docs.microsoft.com/en-us/windows/desktop/Shutdown/system-shutdown-reason-codes
Preview meta tags from the docs.microsoft.com website.
Linked Hostnames
7- 5 links tolearn.microsoft.com
- 3 links todocs.microsoft.com
- 2 links togo.microsoft.com
- 1 link toaka.ms
- 1 link togithub.com
- 1 link totechcommunity.microsoft.com
- 1 link towww.microsoft.com
Thumbnail

Search Engine Appearance
System Shutdown Reason Codes (Reason.h) - Win32 apps
The shutdown reason codes are used by the ExitWindowsEx and InitiateSystemShutdownEx functions in the dwReason parameter. A maximum of MAX\_NUM\_REASONS reason codes will be processed by the system. MAX\_NUM\_REASONS is defined in reason.h.
Bing
System Shutdown Reason Codes (Reason.h) - Win32 apps
The shutdown reason codes are used by the ExitWindowsEx and InitiateSystemShutdownEx functions in the dwReason parameter. A maximum of MAX\_NUM\_REASONS reason codes will be processed by the system. MAX\_NUM\_REASONS is defined in reason.h.
DuckDuckGo
System Shutdown Reason Codes (Reason.h) - Win32 apps
The shutdown reason codes are used by the ExitWindowsEx and InitiateSystemShutdownEx functions in the dwReason parameter. A maximum of MAX\_NUM\_REASONS reason codes will be processed by the system. MAX\_NUM\_REASONS is defined in reason.h.
General Meta Tags
49- titleSystem Shutdown Reason Codes (Reason.h) - Win32 apps | Microsoft Learn
- charsetutf-8
- viewportwidth=device-width, initial-scale=1.0
- color-schemelight dark
- descriptionThe shutdown reason codes are used by the ExitWindowsEx and InitiateSystemShutdownEx functions in the dwReason parameter. A maximum of MAX\_NUM\_REASONS reason codes will be processed by the system. MAX\_NUM\_REASONS is defined in reason.h.
Open Graph Meta Tags
6- og:typewebsite
- og:image:altMicrosoft Learn
- og:imagehttps://learn.microsoft.com/en-us/media/open-graph-image.png
- og:titleSystem Shutdown Reason Codes (Reason.h) - Win32 apps
- og:urlhttps://learn.microsoft.com/en-us/windows/win32/shutdown/system-shutdown-reason-codes
Twitter Meta Tags
2- twitter:cardsummary_large_image
- twitter:site@MicrosoftLearn
Link Tags
6- canonicalhttps://learn.microsoft.com/en-us/windows/win32/shutdown/system-shutdown-reason-codes
- dns-prefetch//target.microsoft.com
- dns-prefetch//microsoftmscompoc.tt.omtrdc.net
- preconnect//mscom.demdex.net
- preload/static/third-party/adobe-target/at-js/2.9.0/at.js
Links
14- https://aka.ms/yourcaliforniaprivacychoices
- https://docs.microsoft.com/en-us/windows/desktop/api/Winreg/nf-winreg-initiatesystemshutdowna
- https://docs.microsoft.com/en-us/windows/desktop/api/Winreg/nf-winreg-initiatesystemshutdownexa
- https://docs.microsoft.com/en-us/windows/desktop/api/Winuser/nf-winuser-exitwindowsex
- https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/Shutdown/system-shutdown-reason-codes.md