Debugging Tools for Windows

StartServer

The StartServer and StartServerWide methods start a debugging server.

HRESULT
  IDebugClient::StartServer(
    IN PCSTR  Options
    );

HRESULT
  IDebugClient5::StartServerWide(
    IN PCWSTR  Options
    );

#ifdef UNICODE
#define StartServerT StartServerWide
#else
#define StartServerT StartServer
#endif

Parameters

Options
Specifies the connections options for this server. These are the same options given to the .server debugger command or the WinDbg and CDB -server command-line option. For details on the syntax of this string, see Activating a Debugging Server.

Return Value

S_OK
The method was successful.

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

Interface Version

StartServer is available in all versions of IDebugClient. StartServerWide is available in IDebugClient5 and later versions.

Comments

The server that is started will be accessible by other debuggers through the transport specified in the Options parameter.

For more information about debugging servers, see Debugging Server and Debugging Client.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h.

See Also

DebugConnect, StartProcessServer, OutputServers

Build machine: CAPEBUILD