Cosmos/source2/Debug/Cosmos.Debug.VSDebugEngine/Host/VMWare.cs
2012-06-15 22:39:24 +00:00

25 lines
626 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vestris.VMWareLib;
namespace Cosmos.Debug.VSDebugEngine.Host {
public abstract class VMWare : Base {
protected string mVmxFile;
public VMWare(string aVmxFile) {
}
public override void Stop() {
using (var xHost = new VMWareVirtualHost()) {
//xHost.ConnectToVMWareWorkstation();
xHost.ConnectToVMWarePlayer();
using (VMWareVirtualMachine xMachine = xHost.Open(mVmxFile)) {
xMachine.PowerOff();
}
xHost.Close();
}
}
}
}