IVMVirtualPC::DefaultVMConfigurationPath property
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Retrieves and sets the default directory to be searched for available virtual machine configuration files.
This property is read/write.
Syntax
HRESULT put_DefaultVMConfigurationPath(
[in] BSTR configurationPath
);
HRESULT get_DefaultVMConfigurationPath(
[out, retval] BSTR *configurationPath
);
Property value
Specifies the directory path for the default virtual machine configuration files. In the path string, a backslash (\) may appear immediately before the terminating null character.
Error codes
Name/value | Meaning |
---|---|
|
The operation was successful. |
|
The configurationPath parameter is NULL. |
|
The system cannot find the directory specified by the configurationPath parameter. |
|
The system cannot find the path specified by the configurationPath parameter. |
|
The configurationPath parameter contains an invalid character (one of the following: "*?<>/|":"). |
|
The configurationPath parameter specifies an empty or relative path. An absolute path is required. |
|
The path specified by the configurationPath parameter is too long. The length of the path must be less than MAX_PATH (260) characters. |
|
An unexpected error has occurred. |
|
The processor does not support Hardware Accelerated Virtualization (HAV) extensions. |
Remarks
By default, this property value is set to the following directory: "%LocalAppData%\Microsoft\Windows Virtual PC\Virtual Machines\".
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
End of client support |
Windows 7 |
Product |
Windows Virtual PC |
Header |
|
IID |
IID_IVMVirtualPC is defined as 236ba0d9-a24a-4292-a132-27c1421dfd01 |