IVMVirtualPC::FindVirtualMachine method
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Retrieves a virtual machine object that matches the requested configuration.
Syntax
HRESULT FindVirtualMachine(
[in] BSTR configurationName,
[out, retval] IVMVirtualMachine **virtualMachine
);
Parameters
-
configurationName [in]
-
The name of the virtual machine to be found.
-
virtualMachine [out, retval]
-
A pointer to a new IVMVirtualMachine object that represents this virtual machine.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successful. |
|
The specified configuration could not be found. |
|
The configurationName parameter is invalid, or virtualMachine is NULL. |
|
An unexpected error has occurred. |
|
The processor does not support Hardware Accelerated Virtualization (HAV) extensions. |
Remarks
Virtual machine names are case-insensitive, for example, "MyVM" and "myvm" refer to the same virtual machine.
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 |