Header menu logo fable-electron-docs-api

WindowSessionEndEvent Type

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.

Constructors

Constructor Description

WindowSessionEndEvent(reasons)

Full Usage: WindowSessionEndEvent(reasons)

Parameters:
    reasons : Reasons[] - List of reasons for shutdown. Can be 'shutdown', 'close-app', 'critical', or 'logoff'.

Returns: WindowSessionEndEvent
reasons : Reasons[]

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

Returns: WindowSessionEndEvent

Instance members

Instance member Description

this.reasons

Full Usage: this.reasons

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

Type something to start searching.