mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
97 lines
No EOL
2.4 KiB
C#
97 lines
No EOL
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Microsoft.VisualStudio.Debugger.Interop;
|
|
using Microsoft.VisualStudio;
|
|
|
|
namespace Cosmos.Debug.VSDebugEngine
|
|
{
|
|
public class AD7Process: IDebugProcess2
|
|
{
|
|
private string mISO;
|
|
internal Guid mID = Guid.NewGuid();
|
|
public AD7Process(string aISOFile)
|
|
{
|
|
mISO = aISOFile;
|
|
}
|
|
|
|
|
|
#region IDebugProcess2 Members
|
|
|
|
public int Attach(IDebugEventCallback2 pCallback, Guid[] rgguidSpecificEngines, uint celtSpecificEngines, int[] rghrEngineAttach)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int CanDetach()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int CauseBreak()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int Detach()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int EnumPrograms(out IEnumDebugPrograms2 ppEnum)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int EnumThreads(out IEnumDebugThreads2 ppEnum)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int GetAttachedSessionName(out string pbstrSessionName)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int GetInfo(uint Fields, PROCESS_INFO[] pProcessInfo)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int GetName(uint gnType, out string pbstrName)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int GetPhysicalProcessId(AD_PROCESS_ID[] pProcessId)
|
|
{
|
|
pProcessId[0].dwProcessId = (uint)mISO.Length;
|
|
pProcessId[0].guidProcessId = mID;
|
|
return VSConstants.S_OK;
|
|
}
|
|
|
|
public int GetPort(out IDebugPort2 ppPort)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int GetProcessId(out Guid pguidProcessId)
|
|
{
|
|
pguidProcessId = mID;
|
|
return VSConstants.S_OK;
|
|
}
|
|
|
|
public int GetServer(out IDebugCoreServer2 ppServer)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public int Terminate()
|
|
{
|
|
return VSConstants.S_OK;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |