| 1 | # WslcVhdRequirements |
| 2 | |
| 3 | ```c |
| 4 | typedef struct WslcVhdRequirements |
| 5 | { |
| 6 | _In_z_ PCSTR name; |
| 7 | _In_ uint64_t sizeBytes; // Desired size (for create/expand) |
| 8 | _In_ WslcVhdType type; |
| 9 | _In_ WslcVhdRequirementsFlags flags; |
| 10 | _In_ uint32_t uid; // honored iff (flags & WSLC_VHD_REQ_FLAG_OWNER) |
| 11 | _In_ uint32_t gid; // honored iff (flags & WSLC_VHD_REQ_FLAG_OWNER) |
| 12 | } WslcVhdRequirements; |
| 13 | ``` |
| 14 | |
| 15 | | Field | Type | |
| 16 | |---|---| |
| 17 | | `name` | `PCSTR` | |
| 18 | | `sizeBytes` | `uint64_t` | |
| 19 | | `type` | `WslcVhdType` | |
| 20 | | `flags` | `WslcVhdRequirementsFlags` | |
| 21 | | `uid` | `uint32_t` | |
| 22 | | `gid` | `uint32_t` | |
| 23 | |
| 24 | Header notes: |
| 25 | |
| 26 | - `name` is ignored by `WslcSetSessionSettingsVhd`. |
| 27 | - The remaining fields after `type` are only honored by `WslcCreateSessionVhdVolume`. |
| 28 | - `WslcSetSessionSettingsVhd` rejects non-`NONE` flags with `E_INVALIDARG`. |