OLD | NEW |
| (Empty) |
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Diagnostics; | |
4 using System.Linq; | |
5 using System.Text; | |
6 using Microsoft.VisualStudio; | |
7 using Microsoft.VisualStudio.Debugger.Interop; | |
8 | |
9 namespace Google.MsAd7.BaseImpl | |
10 { | |
11 class ProgramNode : IDebugProgramNode2 | |
12 { | |
13 public int GetProgramName(out string pbstrProgramName) { | |
14 Debug.WriteLine("ProgramNode.GetProgramName"); | |
15 | |
16 pbstrProgramName = progName_; | |
17 return VSConstants.S_OK; | |
18 } | |
19 | |
20 public int GetHostName(enum_GETHOSTNAME_TYPE dwHostNameType, out string pbst
rHostName) { | |
21 Debug.WriteLine("ProgramNode.GetHostName"); | |
22 | |
23 pbstrHostName = hostName_; | |
24 return VSConstants.S_OK; | |
25 } | |
26 | |
27 public int GetHostPid(AD_PROCESS_ID[] pHostProcessId) { | |
28 Debug.WriteLine("ProgramNode.GetHostPid"); | |
29 | |
30 pHostProcessId[0] = hostPid_; | |
31 return VSConstants.S_OK; | |
32 } | |
33 | |
34 public int GetHostMachineName_V7(out string pbstrHostMachineName) { | |
35 Debug.WriteLine("ProgramNode.GetHostMachineName_V7"); | |
36 | |
37 pbstrHostMachineName = hostMachineName_; | |
38 return VSConstants.S_OK; | |
39 } | |
40 | |
41 public int Attach_V7(IDebugProgram2 pMDMProgram, IDebugEventCallback2 pCallb
ack, uint dwReason) { | |
42 Debug.WriteLine("ProgramNode.Attach_V7"); | |
43 | |
44 throw new NotImplementedException("ProgramNode.Attach_V7"); | |
45 } | |
46 | |
47 public int GetEngineInfo(out string pbstrEngine, out Guid pguidEngine) { | |
48 Debug.WriteLine("ProgramNode.GetEngineInfo"); | |
49 | |
50 throw new NotImplementedException("ProgramNode.Attach_V7"); | |
51 } | |
52 | |
53 public int DetachDebugger_V7() { | |
54 Debug.WriteLine("ProgramNode.DetachDebugger_V7"); | |
55 | |
56 throw new NotImplementedException("ProgramNode.DetachDebugger_V7"); | |
57 } | |
58 | |
59 private string progName_ = "ProgramNode.ProgramName"; | |
60 private string hostName_ = "ProgramNode.HostName"; | |
61 private AD_PROCESS_ID hostPid_ = new AD_PROCESS_ID(); | |
62 private string hostMachineName_ = "ProgramNode.HostMachineName"; | |
63 } | |
64 } | |
OLD | NEW |