Process3 Process3 Process3 Interface


The Process3 object is used to examine and manipulate processes. The Process3 object supersedes the Process2 and Process objects.

public interface Process3 : EnvDTE80.Process2
type Process3 = interface
    interface Process2
Public Interface Process3
Implements Process2


' Macro code.  
Imports EnvDTE  
Imports EnvDTE80  
Imports EnvDTE90  
Imports System.Diagnostics  
Imports Microsoft.VisualBasic.ControlChars  

Public Module Module1  

    Sub NativeAttachToLocalCalc()  
        Dim dbg2 As EnvDTE90.Debugger3  
        dbg2 = DTE.Debugger  

        Dim attached As Boolean = False  
        Dim proc As EnvDTE90.Process3  
        For Each proc In DTE.Debugger.LocalProcesses  
            If (Right(proc.Name, 8) = "calc.exe") Then  
                attached = True  
                Exit For  
            End If  

        If attached = False Then  
            If attached = False Then  
                MsgBox("calc.exe isn't running")  
            End If  
        End If  
    End Sub  
End Module  


Process3 extends the Process2 to add support for the Modules collection.


Collection Collection Collection

Gets a Processes collection that contains the object that supports this property or is contained within this code construct.


Gets the top-level extensibility object, the DTE object.

IsBeingDebugged IsBeingDebugged IsBeingDebugged

Gets whether the current process is being debugged.

Modules Modules Modules

Gets a collection of module objects associated with this process.

Name Name Name

Gets the name of the process.

Parent Parent Parent

Gets the immediate parent object of a Process2 object.

ProcessID ProcessID ProcessID

Gets the ID number assigned to this process.

Programs Programs Programs

Gets a collection of Program objects.

Threads Threads Threads

Gets the threads associated with this process.

Transport Transport Transport

Gets the Transport being used to debug this process.

TransportQualifier TransportQualifier TransportQualifier

Gets a computer name or an IP address.

UserName UserName UserName

Gets the user name associated with this process.


Attach() Attach() Attach()

Causes the debugger to attach this process.

Attach2(Object) Attach2(Object) Attach2(Object)

Similar to Attach(), causes the debugger to attach this process, except that it allows you to specify an engine or set of engines.

Break(Boolean) Break(Boolean) Break(Boolean)

Causes the given process to pause its execution so that its current state can be analyzed.

Detach(Boolean) Detach(Boolean) Detach(Boolean)

Causes the debugger to detach from this process.

Terminate(Boolean) Terminate(Boolean) Terminate(Boolean)

Terminates this process.

Applies to