You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Listing InitiateSystemShutdownEx in NativeMethods.txt works fine, but listing SHTDN_REASON_MAJOR_APPLICATION, for example, results in a build warning: Method or type "SHTDN_REASON_MAJOR_APPLICATION" not found.
What do I need to differently to import these?
Also, is there a way to automatically import them as an enum with flags attribute?
The text was updated successfully, but these errors were encountered:
The constants used for shutdown/reboot functions are defined in reason.h and documented here:
https://docs.microsoft.com/en-us/windows/win32/shutdown/system-shutdown-reason-codes
Listing InitiateSystemShutdownEx in NativeMethods.txt works fine, but listing SHTDN_REASON_MAJOR_APPLICATION, for example, results in a build warning: Method or type "SHTDN_REASON_MAJOR_APPLICATION" not found.
What do I need to differently to import these?
Also, is there a way to automatically import them as an enum with flags attribute?
The text was updated successfully, but these errors were encountered: