C# Class 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)
Inheritance: IDebugPort2
Exibir arquivo Open project: blackberry/VSPlugin Class Usage Examples

Public Properties

Property Type Description
m_IP string
m_guid System.Guid
m_isSimulator bool
m_name string
m_password string
m_supplier AD7PortSupplier
m_toolsPath string

Public Methods

Method Description
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)

Private Methods

Method Description
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.

Method Details

AD7Port() public method

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.
return System

Advise() public method

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.
return void

EnumConnectionPoints() public method

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.
return void

EnumConnections() public method

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.
return void

EnumProcesses() public method

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.
return int

FindConnectionPoint() public method

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.
return void

GetConnectionInterface() public method

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.
return void

GetConnectionPointContainer() public method

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.
return void

GetPortId() public method

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.
return int

GetPortName() public method

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.
return int

GetPortRequest() public method

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.
return int

GetPortSupplier() public method

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.
return int

GetProcess() public method

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.
return int

Unadvise() public method

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.
return void

Property Details

m_IP public_oe property

The IP of the port.
public string m_IP
return string

m_guid public_oe property

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

m_isSimulator public_oe property

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

m_name public_oe property

The name of the port.
public string m_name
return string

m_password public_oe property

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

m_supplier public_oe property

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

m_toolsPath public_oe property

The NDK host path.
public string m_toolsPath
return string