Share via


DependsOnSharedVolumes

Used by the virtual machine (VM) configuration resource type to store information about the shared volumes that are used by the VM. The following table summarizes the attributes of the DependsOnSharedVolumes property.

Attribute Value
Data type
MULTI-SZ
Access
Read/write
Status
Required
Structure
CLUSPROP_MULTI_SZ
Minimum
NULL
Maximum
see Maximum String Size
Default
NULL

Remarks

The format of each string within the CLUSPROP_MULTI_SZ structure is the resource identifier of the cluster shared volume, a colon ':', and the offset (in decimal) of the volume (partition) used by the VM.

Examples

The property value portion of a property list entry for DependsOnSharedVolumes can be set with the following example code.

WCHAR szDOSVData[] = L"df1d8a5d-7d3c-4de2-bcdc-9bf5f38fa3d3:135266304\0"
                     L"2936f4ed-f55d-4fa9-bec2-108469342c6a:129761280\0";

CLUSPROP_SZ_DECLARE( DOSVValue, sizeof(szDOSVData) / sizeof(WCHAR) );

DOSVValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ;

DOSVValue.cbLength  = sizeof(szDOSVData);

CopyMemory( (PVOID)DOSVValue.sz, (PVOID)szDOSVData, sizeof(szDOSVData) );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise

See also

Virtual Machine Configuration Private Properties

CLUSPROP_MULTI_SZ