| 1 | # Component |
| 2 | |
| 3 | `WslcService::GetMissingComponents()` returns a `Component` bitmask. |
| 4 | |
| 5 | Underlying values: |
| 6 | |
| 7 | - `VirtualMachinePlatform = 1` |
| 8 | - `WslPackage = 2` |
| 9 | - `SdkNeedsUpdate = 4` |
| 10 | |
| 11 | ```cpp |
| 12 | auto missing = WslcService::GetMissingComponents(); |
| 13 | if (missing != static_cast<Component>(0)) |
| 14 | { |
| 15 | co_await WslcService::InstallWithDependenciesAsync(); |
| 16 | } |
| 17 | ``` |