mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 22:29:03 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
18 lines
344 B
Markdown
18 lines
344 B
Markdown
# Component
|
|
|
|
`WslcService::GetMissingComponents()` returns a `Component` bitmask.
|
|
|
|
Underlying values:
|
|
|
|
- `VirtualMachinePlatform = 1`
|
|
- `WslPackage = 2`
|
|
- `SdkNeedsUpdate = 4`
|
|
|
|
```cpp
|
|
auto missing = WslcService::GetMissingComponents();
|
|
if (missing != static_cast<Component>(0))
|
|
{
|
|
co_await WslcService::InstallWithDependenciesAsync();
|
|
}
|
|
```
|