Files

19 lines
291 B
Markdown
Raw Permalink Normal View History

2026-06-26 17:28:07 -04:00
# ContainerState
`Container::State()` casts directly from `WslcContainerState`.
Underlying C values:
2026-06-26 17:28:07 -04:00
- `Invalid = 0`
- `Created = 1`
- `Running = 2`
- `Exited = 3`
- `Deleted = 4`
```cpp
auto state = container.State();
if (state == static_cast<ContainerState>(2))
{
// running
}
```