C# 클래스 VSNDK.DebugEngine.AD7Process

상속: IDebugProcess2
파일 보기 프로젝트 열기: blackberry/VSPlugin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_name string
_portAttach AD7Port
_processGUID System.Guid
_processID string
m_program IDebugProgram2

보호된 프로퍼티들

프로퍼티 타입 설명
_engine AD7Engine

공개 메소드들

메소드 설명
AD7Process ( AD7Engine aEngine, IDebugPort2 aPort ) : System

Constructor.

AD7Process ( AD7Port aPort, string ID, string name ) : System

Constructor.

AddImplicitProgramNodes ( System.Guid &guidLaunchingEngine, System.Guid rgguidSpecificEngines, uint celtSpecificEngines ) : int

Adds program nodes for a list of debug engines. (http://msdn.microsoft.com/en-us/library/bb146990.aspx) In this project, it is used only one debug engine, that's why its GUID is assigned to the guidLaunchingEngine explicitly.

Attach ( IDebugEventCallback2 pCallback, System.Guid rgguidSpecificEngines, uint celtSpecificEngines, int rghrEngineAttach ) : int

Attaches the session debug manager (SDM) to the process. Not implemented. Currently using IDebugEngine2.Attach. (http://msdn.microsoft.com/en-ca/library/bb145875.aspx)

Attach ( IDebugSession2 pSession ) : int

Informs the process that a session is now debugging the process. (http://msdn.microsoft.com/en-us/library/bb162300.aspx)

CanDetach ( ) : int

Determines if the session debug manager (SDM) can detach the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb145567.aspx)

CauseBreak ( ) : int

Requests that the next program that is running code in this process halt and send an IDebugBreakEvent2 event object. Not implemented. (http://msdn.microsoft.com/en-us/library/bb162292.aspx)

Detach ( ) : int

Detaches the debugger from this process by detaching all of the programs in the process. (http://msdn.microsoft.com/en-us/library/bb162197.aspx)

Detach ( IDebugSession2 pSession ) : int

Informs the process that a session is no longer debugging the process. (http://msdn.microsoft.com/en-us/library/bb146313.aspx)

EnumPrograms ( IEnumDebugPrograms2 &ppEnum ) : int

Retrieves a list of all the programs contained by this process. (http://msdn.microsoft.com/en-us/library/bb162305.aspx)

EnumThreads ( IEnumDebugThreads2 &ppEnum ) : int

Retrieves a list of all the threads running in all programs in the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb144981.aspx)

GetAttachedSessionName ( string &pbstrSessionName ) : int

Gets the name of the session that is debugging the process. [DEPRECATED. SHOULD ALWAYS RETURN E_NOTIMPL.] (http://msdn.microsoft.com/en-us/library/bb146718.aspx)

GetInfo ( enum_PROCESS_INFO_FIELDS Fields, PROCESS_INFO pProcessInfo ) : int

Gets a description of the process. (http://msdn.microsoft.com/en-us/library/bb145895.aspx)

GetName ( enum_GETNAME_TYPE gnType, string &pbstrName ) : int

Gets the name of the process. (http://msdn.microsoft.com/en-us/library/bb161270.aspx)

GetPhysicalProcessId ( AD_PROCESS_ID pProcessId ) : int

Gets the system process identifier. (http://msdn.microsoft.com/en-us/library/bb146648.aspx)

GetPort ( IDebugPort2 &ppPort ) : int

Gets the port that the process is running on. (http://msdn.microsoft.com/en-us/library/bb162121.aspx)

GetProcessId ( System.Guid &pguidProcessId ) : int

Gets the GUID for this process. (http://msdn.microsoft.com/en-us/library/bb161938.aspx)

GetServer ( IDebugCoreServer2 &ppServer ) : int

Gets the server that this process is running on. Not implemented completely because _server has no value assigned to it. (http://msdn.microsoft.com/en-us/library/bb147017.aspx)

Terminate ( ) : int

Terminates the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb146226.aspx)

메소드 상세

AD7Process() 공개 메소드

Constructor.
public AD7Process ( AD7Engine aEngine, IDebugPort2 aPort ) : System
aEngine AD7Engine The AD7Engine object that represents the DE.
aPort IDebugPort2 The IDebugPort2 object that represents the port on which the process was launched.
리턴 System

AD7Process() 공개 메소드

Constructor.
public AD7Process ( AD7Port aPort, string ID, string name ) : System
aPort AD7Port The AD7Port object that represents the port used in Attach to Process UI.
ID string The process ID.
name string The process name.
리턴 System

AddImplicitProgramNodes() 공개 메소드

Adds program nodes for a list of debug engines. (http://msdn.microsoft.com/en-us/library/bb146990.aspx) In this project, it is used only one debug engine, that's why its GUID is assigned to the guidLaunchingEngine explicitly.
public AddImplicitProgramNodes ( System.Guid &guidLaunchingEngine, System.Guid rgguidSpecificEngines, uint celtSpecificEngines ) : int
guidLaunchingEngine System.Guid The GUID of a DE that is to be used to launch programs (and is assumed to add its own /// program nodes).
rgguidSpecificEngines System.Guid Array of GUIDs of DEs for which program nodes will be added.
celtSpecificEngines uint The number of GUIDs in the rgguidSpecificEngines array.
리턴 int

Attach() 공개 메소드

Attaches the session debug manager (SDM) to the process. Not implemented. Currently using IDebugEngine2.Attach. (http://msdn.microsoft.com/en-ca/library/bb145875.aspx)
public Attach ( IDebugEventCallback2 pCallback, System.Guid rgguidSpecificEngines, uint celtSpecificEngines, int rghrEngineAttach ) : int
pCallback IDebugEventCallback2 An IDebugEventCallback2 object that is used for debug event notification.
rgguidSpecificEngines System.Guid An array of GUIDs of debug engines to be used to debug programs running in the process. /// This parameter can be a null value.
celtSpecificEngines uint The number of debug engines in the rgguidSpecificEngines array and the size of the /// rghrEngineAttach array.
rghrEngineAttach int An array of HRESULT codes returned by the debug engines.
리턴 int

Attach() 공개 메소드

Informs the process that a session is now debugging the process. (http://msdn.microsoft.com/en-us/library/bb162300.aspx)
public Attach ( IDebugSession2 pSession ) : int
pSession IDebugSession2 A value that uniquely identifies the session attaching to this process.
리턴 int

CanDetach() 공개 메소드

Determines if the session debug manager (SDM) can detach the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb145567.aspx)
public CanDetach ( ) : int
리턴 int

CauseBreak() 공개 메소드

Requests that the next program that is running code in this process halt and send an IDebugBreakEvent2 event object. Not implemented. (http://msdn.microsoft.com/en-us/library/bb162292.aspx)
public CauseBreak ( ) : int
리턴 int

Detach() 공개 메소드

Detaches the debugger from this process by detaching all of the programs in the process. (http://msdn.microsoft.com/en-us/library/bb162197.aspx)
public Detach ( ) : int
리턴 int

Detach() 공개 메소드

Informs the process that a session is no longer debugging the process. (http://msdn.microsoft.com/en-us/library/bb146313.aspx)
public Detach ( IDebugSession2 pSession ) : int
pSession IDebugSession2 A value that uniquely identifies the session to detach this process from.
리턴 int

EnumPrograms() 공개 메소드

Retrieves a list of all the programs contained by this process. (http://msdn.microsoft.com/en-us/library/bb162305.aspx)
public EnumPrograms ( IEnumDebugPrograms2 &ppEnum ) : int
ppEnum IEnumDebugPrograms2 Returns an IEnumDebugPrograms2 object that contains a list of all the programs in the process.
리턴 int

EnumThreads() 공개 메소드

Retrieves a list of all the threads running in all programs in the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb144981.aspx)
public EnumThreads ( IEnumDebugThreads2 &ppEnum ) : int
ppEnum IEnumDebugThreads2 Returns an IEnumDebugThreads2 object that contains a list of all threads in all programs in the /// process.
리턴 int

GetAttachedSessionName() 공개 메소드

Gets the name of the session that is debugging the process. [DEPRECATED. SHOULD ALWAYS RETURN E_NOTIMPL.] (http://msdn.microsoft.com/en-us/library/bb146718.aspx)
public GetAttachedSessionName ( string &pbstrSessionName ) : int
pbstrSessionName string DEPRECATED. Return null.
리턴 int

GetInfo() 공개 메소드

Gets a description of the process. (http://msdn.microsoft.com/en-us/library/bb145895.aspx)
public GetInfo ( enum_PROCESS_INFO_FIELDS Fields, PROCESS_INFO pProcessInfo ) : int
Fields enum_PROCESS_INFO_FIELDS A combination of values from the PROCESS_INFO_FIELDS enumeration that specifies which fields of /// the pProcessInfo parameter are to be filled in.
pProcessInfo PROCESS_INFO A PROCESS_INFO structure that is filled in with a description of the process.
리턴 int

GetName() 공개 메소드

Gets the name of the process. (http://msdn.microsoft.com/en-us/library/bb161270.aspx)
public GetName ( enum_GETNAME_TYPE gnType, string &pbstrName ) : int
gnType enum_GETNAME_TYPE A value from the GETNAME_TYPE enumeration that specifies what type of name to return.
pbstrName string Returns the name of the process.
리턴 int

GetPhysicalProcessId() 공개 메소드

Gets the system process identifier. (http://msdn.microsoft.com/en-us/library/bb146648.aspx)
public GetPhysicalProcessId ( AD_PROCESS_ID pProcessId ) : int
pProcessId AD_PROCESS_ID An AD_PROCESS_ID structure that is filled in with the system process identifier information.
리턴 int

GetPort() 공개 메소드

Gets the port that the process is running on. (http://msdn.microsoft.com/en-us/library/bb162121.aspx)
public GetPort ( IDebugPort2 &ppPort ) : int
ppPort IDebugPort2 Returns an IDebugPort2 object that represents the port on which the process was launched.
리턴 int

GetProcessId() 공개 메소드

Gets the GUID for this process. (http://msdn.microsoft.com/en-us/library/bb161938.aspx)
public GetProcessId ( System.Guid &pguidProcessId ) : int
pguidProcessId System.Guid Returns the GUID for this process.
리턴 int

GetServer() 공개 메소드

Gets the server that this process is running on. Not implemented completely because _server has no value assigned to it. (http://msdn.microsoft.com/en-us/library/bb147017.aspx)
public GetServer ( IDebugCoreServer2 &ppServer ) : int
ppServer IDebugCoreServer2 Returns an IDebugCoreServer2 object that represents the server on which this process is running.
리턴 int

Terminate() 공개 메소드

Terminates the process. Not implemented. (http://msdn.microsoft.com/en-us/library/bb146226.aspx)
public Terminate ( ) : int
리턴 int

프로퍼티 상세

_engine 보호되어 있는 프로퍼티

The AD7Engine object that represents the DE.
protected AD7Engine,VSNDK.DebugEngine _engine
리턴 AD7Engine

_name 공개적으로 프로퍼티

The name of the process. Not used till now. Has no value assigned to it.
public string _name
리턴 string

_portAttach 공개적으로 프로퍼티

The AD7Port object that represents the port used in Attach to Process UI.
public AD7Port,VSNDK.DebugEngine _portAttach
리턴 AD7Port

_processGUID 공개적으로 프로퍼티

Process GUID.
public Guid,System _processGUID
리턴 System.Guid

_processID 공개적으로 프로퍼티

Process ID.
public string _processID
리턴 string

m_program 공개적으로 프로퍼티

A program that is running in this process. It should be an array of programs, as a process "is a container for a set of programs" but, at this moment, the VSNDK supports only one program at a time.
public IDebugProgram2 m_program
리턴 IDebugProgram2