C# 클래스 VSNDK.DebugEngine.AD7Port

This class implements a port. It implements: - IDebugPort2 - This interface represents a debug port on a machine. (http://msdn.microsoft.com/en-us/library/bb147021.aspx) - IConnectionPointContainer - Supports connection points for connectable objects. Indicates to a client that the object is connectable and provides the IConnectionPoint interface. (http://msdn.microsoft.com/en-CA/library/ms683857.aspx) - IConnectionPoint - Supports connection points for connectable objects. (http://msdn.microsoft.com/en-us/library/ms694318.aspx)
상속: IDebugPort2
파일 보기 프로젝트 열기: blackberry/VSPlugin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_IP string
m_guid System.Guid
m_isSimulator bool
m_name string
m_password string
m_supplier AD7PortSupplier
m_toolsPath string

공개 메소드들

메소드 설명
AD7Port ( AD7PortSupplier supplier, AD7PortRequest request, System.Guid guid, string portName, string password, bool isSimulator, string toolsPath ) : System

Constructor.

Advise ( object pUnkSink, int &pdwCookie ) : void

Establishes a connection between a connection point object and a client's sink. (http://msdn.microsoft.com/en-us/library/ms678815.aspx)

EnumConnectionPoints ( IEnumConnectionPoints &ppEnum ) : void

Creates an enumerator object to iterate through all the connection points supported in the connectable object, one connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)

EnumConnections ( IEnumConnections &ppEnum ) : void

Creates an enumerator object to iterate through the current connections for this connection point. Not implemented. (http://msdn.microsoft.com/en-us/library/ms680755.aspx)

EnumProcesses ( IEnumDebugProcesses2 &ppEnum ) : int

Enumerates all the processes running on a port. (http://msdn.microsoft.com/en-us/library/bb161302.aspx)

FindConnectionPoint ( System.Guid &riid, IConnectionPoint &ppCP ) : void

Returns a pointer to the IConnectionPoint interface of a connection point for a specified IID, if that IID describes a supported outgoing interface. (http://msdn.microsoft.com/en-CA/library/ms692476.aspx)

GetConnectionInterface ( System.Guid &pIID ) : void

Retrieves the IID of the outgoing interface managed by this connection point. (http://msdn.microsoft.com/en-us/library/ms693468.aspx)

GetConnectionPointContainer ( IConnectionPointContainer &ppCPC ) : void

Retrieves the IConnectionPointContainer interface pointer for the parent connectable object. (http://msdn.microsoft.com/en-us/library/ms679669.aspx)

GetPortId ( System.Guid &pguidPort ) : int

Returns the port identifier. (http://msdn.microsoft.com/en-us/library/bb146747.aspx)

GetPortName ( string &pbstrName ) : int

Returns the port name. (http://msdn.microsoft.com/en-us/library/bb145890.aspx)

GetPortRequest ( IDebugPortRequest2 &ppRequest ) : int

Returns the request used to create a port. (http://msdn.microsoft.com/en-us/library/bb145127.aspx)

GetPortSupplier ( IDebugPortSupplier2 &ppSupplier ) : int

Returns the port supplier for this port. (http://msdn.microsoft.com/en-us/library/bb146688.aspx)

GetProcess ( AD_PROCESS_ID ProcessId, IDebugProcess2 &ppProcess ) : int

Returns the specified process running on a port. (http://msdn.microsoft.com/en-us/library/bb145867.aspx)

Unadvise ( int dwCookie ) : void

Terminates an advisory connection previously established between a connection point object and a client's sink. (http://msdn.microsoft.com/en-us/library/ms686608.aspx)

비공개 메소드들

메소드 설명
GetProcesses ( ) : IEnumerable

Gets the list of processes running on this port.

SendEvent ( IDebugCoreServer2 server, IDebugPort2 port, IDebugProcess2 process, IDebugProgram2 program, IDebugEvent2 ev, System.Guid iid ) : void

Send an event to SDM.

메소드 상세

AD7Port() 공개 메소드

Constructor.
public AD7Port ( AD7PortSupplier supplier, AD7PortRequest request, System.Guid guid, string portName, string password, bool isSimulator, string toolsPath ) : System
supplier AD7PortSupplier The port supplier for this port.
request AD7PortRequest The request used to create the port.
guid System.Guid The GUID that identifies the port.
portName string The name of the port.
password string The password needed to have access to the port.
isSimulator bool Variable that indicates if the port is associated to the Simulator or the Device.
toolsPath string The NDK host path.
리턴 System

Advise() 공개 메소드

Establishes a connection between a connection point object and a client's sink. (http://msdn.microsoft.com/en-us/library/ms678815.aspx)
public Advise ( object pUnkSink, int &pdwCookie ) : void
pUnkSink object An "object" instance of the client's advise sink. The client's sink receives /// outgoing calls from the connection point.
pdwCookie int A returned token that uniquely identifies this connection.
리턴 void

EnumConnectionPoints() 공개 메소드

Creates an enumerator object to iterate through all the connection points supported in the connectable object, one connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)
public EnumConnectionPoints ( IEnumConnectionPoints &ppEnum ) : void
ppEnum IEnumConnectionPoints An IEnumConnectionPoints object that receives the newly created enumerator.
리턴 void

EnumConnections() 공개 메소드

Creates an enumerator object to iterate through the current connections for this connection point. Not implemented. (http://msdn.microsoft.com/en-us/library/ms680755.aspx)
public EnumConnections ( IEnumConnections &ppEnum ) : void
ppEnum IEnumConnections An IEnumConnections object that receives the newly created enumerator.
리턴 void

EnumProcesses() 공개 메소드

Enumerates all the processes running on a port. (http://msdn.microsoft.com/en-us/library/bb161302.aspx)
public EnumProcesses ( IEnumDebugProcesses2 &ppEnum ) : int
ppEnum IEnumDebugProcesses2 Returns an IEnumDebugProcesses2 object that contains a list of all the processes running on a port.
리턴 int

FindConnectionPoint() 공개 메소드

Returns a pointer to the IConnectionPoint interface of a connection point for a specified IID, if that IID describes a supported outgoing interface. (http://msdn.microsoft.com/en-CA/library/ms692476.aspx)
public FindConnectionPoint ( System.Guid &riid, IConnectionPoint &ppCP ) : void
riid System.Guid Interface identifier of the outgoing interface whose connection point object is being requested.
ppCP IConnectionPoint An IConnectionPoint object that receives the connection point that supports the riid interface.
리턴 void

GetConnectionInterface() 공개 메소드

Retrieves the IID of the outgoing interface managed by this connection point. (http://msdn.microsoft.com/en-us/library/ms693468.aspx)
public GetConnectionInterface ( System.Guid &pIID ) : void
pIID System.Guid An identifier of the outgoing interface managed by this connection point.
리턴 void

GetConnectionPointContainer() 공개 메소드

Retrieves the IConnectionPointContainer interface pointer for the parent connectable object. (http://msdn.microsoft.com/en-us/library/ms679669.aspx)
public GetConnectionPointContainer ( IConnectionPointContainer &ppCPC ) : void
ppCPC IConnectionPointContainer An IConnectionPointContainer object.
리턴 void

GetPortId() 공개 메소드

Returns the port identifier. (http://msdn.microsoft.com/en-us/library/bb146747.aspx)
public GetPortId ( System.Guid &pguidPort ) : int
pguidPort System.Guid Returns the GUID that identifies the port.
리턴 int

GetPortName() 공개 메소드

Returns the port name. (http://msdn.microsoft.com/en-us/library/bb145890.aspx)
public GetPortName ( string &pbstrName ) : int
pbstrName string Returns the name of the port.
리턴 int

GetPortRequest() 공개 메소드

Returns the request used to create a port. (http://msdn.microsoft.com/en-us/library/bb145127.aspx)
public GetPortRequest ( IDebugPortRequest2 &ppRequest ) : int
ppRequest IDebugPortRequest2 Returns an IDebugPortRequest2 object representing the request that was used to create the port.
리턴 int

GetPortSupplier() 공개 메소드

Returns the port supplier for this port. (http://msdn.microsoft.com/en-us/library/bb146688.aspx)
public GetPortSupplier ( IDebugPortSupplier2 &ppSupplier ) : int
ppSupplier IDebugPortSupplier2 Returns an IDebugPortSupplier2 object represents the port supplier for a port.
리턴 int

GetProcess() 공개 메소드

Returns the specified process running on a port. (http://msdn.microsoft.com/en-us/library/bb145867.aspx)
public GetProcess ( AD_PROCESS_ID ProcessId, IDebugProcess2 &ppProcess ) : int
ProcessId AD_PROCESS_ID An AD_PROCESS_ID structure that specifies the process identifier.
ppProcess IDebugProcess2 Returns an IDebugProcess2 object representing the process.
리턴 int

Unadvise() 공개 메소드

Terminates an advisory connection previously established between a connection point object and a client's sink. (http://msdn.microsoft.com/en-us/library/ms686608.aspx)
public Unadvise ( int dwCookie ) : void
dwCookie int A connection token previously returned from IConnectionPoint::Advise.
리턴 void

프로퍼티 상세

m_IP 공개적으로 프로퍼티

The IP of the port.
public string m_IP
리턴 string

m_guid 공개적으로 프로퍼티

The GUID that identifies the port.
public Guid,System m_guid
리턴 System.Guid

m_isSimulator 공개적으로 프로퍼티

Boolean variable that indicates if the port is associated to the Simulator or the Device.
public bool m_isSimulator
리턴 bool

m_name 공개적으로 프로퍼티

The name of the port.
public string m_name
리턴 string

m_password 공개적으로 프로퍼티

The password needed to have access to the port.
public string m_password
리턴 string

m_supplier 공개적으로 프로퍼티

Represents the port supplier for this port.
public AD7PortSupplier,VSNDK.DebugEngine m_supplier
리턴 AD7PortSupplier

m_toolsPath 공개적으로 프로퍼티

The NDK host path.
public string m_toolsPath
리턴 string