C# Class PowerStudio.DebugEngine.DebugPort

Inheritance: IDebugPort2, IDebugDefaultPort2, IDebugPortNotify2
Afficher le fichier Open project: IntelliTect/PowerStudio

Méthodes publiques

Méthode Description
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.

Method Details

AddProgramNode() public méthode

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.
Résultat int

EnumProcesses() public méthode

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.
Résultat int

GetPortId() public méthode

Gets the port identifier.
public GetPortId ( System.Guid &pguidPort ) : int
pguidPort System.Guid Returns the GUID that identifies the port.
Résultat int

GetPortName() public méthode

Gets the port name.
public GetPortName ( string &pbstrName ) : int
pbstrName string Returns the name of the port.
Résultat int

GetPortNotify() public méthode

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.
Résultat int

GetPortRequest() public méthode

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.
Résultat int

GetPortSupplier() public méthode

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.
Résultat int

GetProcess() public méthode

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.
Résultat int

GetServer() public méthode

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.
Résultat int

QueryIsLocal() public méthode

This method determines whether this port is on the local machine.
public QueryIsLocal ( ) : int
Résultat int

RemoveProgramNode() public méthode

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.
Résultat int