C# Класс PowerStudio.DebugEngine.DebugPort

Наследование: IDebugPort2, IDebugDefaultPort2, IDebugPortNotify2
Показать файл Открыть проект

Открытые методы

Метод Описание
AddProgramNode ( IDebugProgramNode2 pProgramNode ) : int

Registers a program that can be debugged with the port it is running on.

A program node can be unregistered from the port by calling the IDebugPortNotify2::RemoveProgramNode method.

EnumProcesses ( IEnumDebugProcesses2 &ppEnum ) : int

Returns a list of all the processes running on a port.

GetPortId ( System.Guid &pguidPort ) : int

Gets the port identifier.

GetPortName ( string &pbstrName ) : int

Gets the port name.

GetPortNotify ( IDebugPortNotify2 &ppPortNotify ) : int

This method gets an IDebugPortNotify2 interface for this port.

Normally, the QueryInterface method is called on the object implementing the IDebugPort2 interface to obtain an IDebugPortNotify2 interface. However, there are circumstances in which the desired interface is implemented on a different object. This method hides those circumstances and returns the IDebugPortNotify2 interface from the most appropriate object.

GetPortRequest ( IDebugPortRequest2 &ppRequest ) : int

Gets the description of a port that was previously used to create the port (if available).

GetPortSupplier ( IDebugPortSupplier2 &ppSupplier ) : int

Gets the port supplier for this port.

GetProcess ( AD_PROCESS_ID ProcessId, IDebugProcess2 &ppProcess ) : int

Gets the specified process running on a port.

GetServer ( IDebugCoreServer3 &ppServer ) : int

This method obtains an interface to the server that this port is on.

The IDebugCoreServer3 is implemented by Visual Studio and represents the server that the port is located on.

QueryIsLocal ( ) : int

This method determines whether this port is on the local machine.

RemoveProgramNode ( IDebugProgramNode2 pProgramNode ) : int

Unregisters a program that can be debugged from the port it is running on.

Описание методов

AddProgramNode() публичный Метод

Registers a program that can be debugged with the port it is running on.
A program node can be unregistered from the port by calling the IDebugPortNotify2::RemoveProgramNode method.
public AddProgramNode ( IDebugProgramNode2 pProgramNode ) : int
pProgramNode IDebugProgramNode2 An IDebugProgramNode2 object that represents the program to be registered.
Результат int

EnumProcesses() публичный Метод

Returns a list of all the processes running on a port.
public EnumProcesses ( IEnumDebugProcesses2 &ppEnum ) : int
ppEnum IEnumDebugProcesses2 Returns an IEnumDebugProcesses2 object that contains a list of all the processes running on a port.
Результат int

GetPortId() публичный Метод

Gets the port identifier.
public GetPortId ( System.Guid &pguidPort ) : int
pguidPort System.Guid Returns the GUID that identifies the port.
Результат int

GetPortName() публичный Метод

Gets the port name.
public GetPortName ( string &pbstrName ) : int
pbstrName string Returns the name of the port.
Результат int

GetPortNotify() публичный Метод

This method gets an IDebugPortNotify2 interface for this port.
Normally, the QueryInterface method is called on the object implementing the IDebugPort2 interface to obtain an IDebugPortNotify2 interface. However, there are circumstances in which the desired interface is implemented on a different object. This method hides those circumstances and returns the IDebugPortNotify2 interface from the most appropriate object.
public GetPortNotify ( IDebugPortNotify2 &ppPortNotify ) : int
ppPortNotify IDebugPortNotify2 An IDebugPortNotify2 object.
Результат int

GetPortRequest() публичный Метод

Gets the description of a port that was previously used to create the port (if available).
public GetPortRequest ( IDebugPortRequest2 &ppRequest ) : int
ppRequest IDebugPortRequest2 Returns an IDebugPortRequest2 object representing the request that was used to create the port.
Результат int

GetPortSupplier() публичный Метод

Gets the port supplier for this port.
public GetPortSupplier ( IDebugPortSupplier2 &ppSupplier ) : int
ppSupplier IDebugPortSupplier2 Returns an IDebugPortSupplier2 object represents the port supplier for a port.
Результат int

GetProcess() публичный Метод

Gets the specified process running on a port.
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

GetServer() публичный Метод

This method obtains an interface to the server that this port is on.
The IDebugCoreServer3 is implemented by Visual Studio and represents the server that the port is located on.
public GetServer ( IDebugCoreServer3 &ppServer ) : int
ppServer IDebugCoreServer3 Returns an object implementing the IDebugCoreServer3 interface.
Результат int

QueryIsLocal() публичный Метод

This method determines whether this port is on the local machine.
public QueryIsLocal ( ) : int
Результат int

RemoveProgramNode() публичный Метод

Unregisters a program that can be debugged from the port it is running on.
public RemoveProgramNode ( IDebugProgramNode2 pProgramNode ) : int
pProgramNode IDebugProgramNode2 An IDebugProgramNode2 object that represents the program to be unregistered.
Результат int