UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dbgeng.IDebugClient.AttachProcess |
IDebugClient::AttachProcess (dbgeng.h) |
The AttachProcess method connects the debugger engine to a user-modeprocess. This method belongs to the IDebugClient interface. |
debugger\attachprocess.htm |
debugger |
05/03/2018 |
|
AttachProcess, AttachProcess method [Windows Debugging], AttachProcess method [Windows Debugging],IDebugClient interface, AttachProcess method [Windows Debugging],IDebugClient2 interface, AttachProcess method [Windows Debugging],IDebugClient3 interface, AttachProcess method [Windows Debugging],IDebugClient4 interface, AttachProcess method [Windows Debugging],IDebugClient5 interface, IDebugClient interface [Windows Debugging],AttachProcess method, IDebugClient.AttachProcess, IDebugClient2 interface [Windows Debugging],AttachProcess method, IDebugClient2::AttachProcess, IDebugClient3 interface [Windows Debugging],AttachProcess method, IDebugClient3::AttachProcess, IDebugClient4 interface [Windows Debugging],AttachProcess method, IDebugClient4::AttachProcess, IDebugClient5 interface [Windows Debugging],AttachProcess method, IDebugClient5::AttachProcess, IDebugClient::AttachProcess, IDebugClient_032236c1-3072-4226-919b-3f6f95635a20.xml, dbgeng/IDebugClient2::AttachProcess, dbgeng/IDebugClient3::AttachProcess, dbgeng/IDebugClient4::AttachProcess, dbgeng/IDebugClient5::AttachProcess, dbgeng/IDebugClient::AttachProcess, debugger.attachprocess |
dbgeng.h |
Dbgeng.h |
Desktop |
Windows |
|
|
|
|
|
The AttachProcess method connects the debugger engine to a user-modeprocess.
Specifies the process server to use to attach to the process. If Server is zero, the engine will connect to a local process without using a process server.
Specifies the process ID of the target process the debugger will attach to.
Specifies the flags that control how the debugger attaches to the target process. For details on these flags, see Remarks.
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
This method is available only for live user-mode debugging.
The DEBUG_ATTACH_XXX bit-flags control how the debugger engine attaches to a user-mode process. For the DEBUG_ATTACH_XXX options used when attaching to a kernel target, see AttachKernel.
The following table describes the possible flag values.
Constant | Description |
---|---|
DEBUG_ATTACH_NONINVASIVE |
Attach to the target noninvasively. For more information about noninvasive debugging, see Noninvasive Debugging (User Mode).
If this flag is set, then the flags DEBUG_ATTACH_EXISTING, DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK, and DEBUG_ATTACH_INVASIVE_RESUME_PROCESS must not be set. |
DEBUG_ATTACH_EXISTING |
Re-attach to an application to which a debugger has already attached (and possibly abandoned). For more information about re-attaching to targets, see Re-attaching to the Target Application.
If this flag is set, then the other DEBUG_ATTACH_XXX flags must not be set. |
DEBUG_ATTACH_NONINVASIVE_NO_SUSPEND |
Do not suspend the target's threads when attaching noninvasively.
If this flag is set, then the flag DEBUG_ATTACH_NONINVASIVE must also be set. |
DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK |
(Windows XP and later) Do not request an initial break-in when attaching to the target.
If this flag is set, then the flags DEBUG_ATTACH_NONINVASIVE and DEBUG_ATTACH_EXISTING must not be set. |
DEBUG_ATTACH_INVASIVE_RESUME_PROCESS | If this flag is set, then the flags DEBUG_ATTACH_NONINVASIVE and DEBUG_ATTACH_EXISTING must not be set. |