IDebugClient5::ConnectProcessServer method

The ConnectProcessServer methods connect to a process server.

Syntax

HRESULT ConnectProcessServer(
  PCSTR    RemoteOptions,
  PULONG64 Server
);

Parameters

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.

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

   
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