VmStoreRootPath
Provides the path that specifies the location of the virtual machine (VM) configuration and data. The following table summarizes the attributes of the VmStoreRootPath property.
Attribute | Value |
---|---|
Data type |
Null-terminated Unicode string |
Access |
Read/write |
Status |
Required |
Structure |
CLUSPROP_SZ |
Minimum |
NULL |
Maximum |
see Maximum String Size |
Default |
NULL |
Remarks
The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.
Examples
The property value portion of a property list entry for VmStoreRootPath can be set with the following example code.
WCHAR szVmStoreRootPathData[] = L"C:\\VM\\VM2\\Data";
CLUSPROP_SZ_DECLARE( VmStoreRootPathValue, sizeof(szVmStoreRootPathData) / sizeof(WCHAR) );
VmStoreRootPathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
VmStoreRootPathValue.cbLength = sizeof( szVmStoreRootPathData );
StringCbCopy( VmStoreRootPathValue.sz, VmStoreRootPathValue.cbLength, szVmStoreRootPathData );
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise |