WindowSessionEndEvent 对象继承自 Event
🌐 WindowSessionEndEvent Object extends Event
reasonsstring[] - 关机原因列表。可以是“shutdown”(关机)、“close-app”(关闭应用)、“critical”(关键)或“logoff”(注销)。
遗憾的是,Windows 并不提供区分关机和重启的方法,这意味着“关机”原因在两种情况下都会被触发。有关 WM_ENDSESSION 消息及其相关原因的更多详细信息,请参阅 MSDN 文档。
🌐 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.