IDebugClient5::ConnectProcessServer method (dbgeng.h)

The ConnectProcessServer methods connect to a process server.

Syntax

HRESULT ConnectProcessServer(
  [in]  PCSTR    RemoteOptions,
  [out] PULONG64 Server
);

Parameters

[in] RemoteOptions

Specifies how the debugger engine will connect with the process server. These are the same options passed to the -premote option on the WinDbg and CDB command lines. For details on the syntax of this string, see Activating a Smart Client.

[out] Server

Receives a handle for the process server. This handle is used when creating or attaching to processes by using the process server.

Return value

This method may also return error values. See Return Values for more details.

Return code Description
S_OK
The method was successful.

Remarks

For more information about process servers and remote debugging, see Process Servers, Kernel Connection Servers, and Smart Clients.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See also

AttachProcess

CreateProcess2

CreateProcessAndAttach2

DisconnectProcessServer

EndProcessServer

GetRunningProcessDescription

GetRunningProcessSystemIdByExecutableName

GetRunningProcessSystemIds

IDebugClient

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5

StartProcessServer