Back to Wsl

WslcVhdRequirements

doc/docs/api-reference/c/structures/wslcvhdrequirements.md

2.9.4813 B
Original Source

WslcVhdRequirements

c
typedef struct WslcVhdRequirements
{
    _In_z_ PCSTR name;
    _In_ uint64_t sizeBytes; // Desired size (for create/expand)
    _In_ WslcVhdType type;
    _In_ WslcVhdRequirementsFlags flags;
    _In_ uint32_t uid; // honored iff (flags & WSLC_VHD_REQ_FLAG_OWNER)
    _In_ uint32_t gid; // honored iff (flags & WSLC_VHD_REQ_FLAG_OWNER)
} WslcVhdRequirements;
FieldType
namePCSTR
sizeBytesuint64_t
typeWslcVhdType
flagsWslcVhdRequirementsFlags
uiduint32_t
giduint32_t

Header notes:

  • name is ignored by WslcSetSessionSettingsVhd.
  • The remaining fields after type are only honored by WslcCreateSessionVhdVolume.
  • WslcSetSessionSettingsVhd rejects non-NONE flags with E_INVALIDARG.