Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IVMVirtualPC::VirtualMachines property

Windows Virtual PC

[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]

Retrieves an enumerable collection of virtual machines.

This property is read-only.

Syntax


HRESULT get_VirtualMachines(
  [out, retval] IVMVirtualMachineCollection **virtualMachineCollection
);

Property value

A collection of IVMVirtualMachine objects. See IVMVirtualMachineCollection.

Error codes

Name/valueMeaning
S_OK
0

The operation was successful.

E_POINTER
0x80004003

The parameter is NULL.

DISP_E_EXCEPTION
0x80020009

An unexpected error has occurred.

VM_E_HARDWARE_VIRTUALIZATION_DISABLED
0xA0040951

The processor does not support Hardware Accelerated Virtualization (HAV) extensions.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

End of client support

Windows 7

Product

Windows Virtual PC

Header

VPCCOMInterfaces.h

IID

IID_IVMVirtualPC is defined as 236ba0d9-a24a-4292-a132-27c1421dfd01

See also

IVMVirtualPC

 

 

Community Additions

ADD
Show:
© 2015 Microsoft