mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 21:00:30 +00:00
25 lines
626 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|