Debugging Tools for Windows |
The AttachProcess method connects the debugger engine to a user-mode process.
HRESULT
IDebugClient::AttachProcess(
IN ULONG64 Server,
IN ULONG ProcessId,
IN ULONG AttachFlags
);
This method may also return error values. See Return Values for more details.
AttachProcess is available in all versions of IDebugClient.
This method is available only for live user-mode debugging.
Note The engine doesn't completely attach to the process until the WaitForEvent method has been called. Only after the process has generated an event — for example, the create-process event — does it become available in the debugger session.
For more information about creating and attaching to live user-mode targets, see Live User-Mode Targets.
Headers: Defined in dbgeng.h. Include dbgeng.h.
.attach (Attach to Process), ConnectProcessServer, CreateProcess2, CreateProcessAndAttach2, GetRunningProcessSystemIds, GetRunningProcessDescription , DetachCurrentProcess, TerminateCurrentProcess, AbandonCurrentProcess