Back to Electron

WindowSessionEndEvent Object extends `Event`

docs/api/structures/window-session-end-event.md

42.0.0497 B
Original Source

WindowSessionEndEvent Object extends Event

  • reasons string[] - List of reasons for shutdown. Can be 'shutdown', 'close-app', 'critical', or 'logoff'.

Unfortunately, Windows does not offer a way to differentiate between a shutdown and a reboot, meaning the 'shutdown' reason is triggered in both scenarios. For more details on the WM_ENDSESSION message and its associated reasons, refer to the MSDN documentation.