mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
20 lines
356 B
Markdown
20 lines
356 B
Markdown
# SessionTerminationReason
|
|
|
|
`Session::OnTerminated` converts `WslcSessionTerminationReason` directly to the WinRT enum.
|
|
|
|
Underlying C values:
|
|
|
|
- `Unknown = 0`
|
|
- `Shutdown = 1`
|
|
- `Crashed = 2`
|
|
|
|
```cpp
|
|
session.Terminated([](SessionTerminationReason reason)
|
|
{
|
|
if (reason == static_cast<SessionTerminationReason>(2))
|
|
{
|
|
// crashed
|
|
}
|
|
});
|
|
```
|