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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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