# gpui: Support Windows Restart Manager shutdown \(\#62987\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7f2a2c3c3ee2f23f28772dee7661fb98d3910990)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7f2a2c3c3ee2f23f28772dee7661fb98d3910990

Requested commit: 7f2a2c3c3ee2f23f28772dee7661fb98d3910990

Commit: 7f2a2c3c3ee2f23f28772dee7661fb98d3910990

Tree: 921af406249095bb03451a42b5914f7546617857

Author: John Tur

Committer: GitHub

## Message

```
gpui: Support Windows Restart Manager shutdown (#62987)

Handle the `WM_QUERYENDSESSION` and `WM_ENDSESSION` messages, which are
used by Windows when shutting down an application. For example, Restart
Manager uses this mechanism to gracefully close applications (e.g. when
installing an update to the application).

Release Notes:

- N/A
```

## Parents

- [6bf539cd52126974eb0dbff667de02a696a737ec](https://git.cafe/gitcafe/zed/commit/6bf539cd52126974eb0dbff667de02a696a737ec?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7f2a2c3c3ee2f23f28772dee7661fb98d3910990?format=markdown)
