Debugging Tools for Windows |
The StartProcessServer and StartProcessServerWide methods start a process server.
HRESULT
IDebugClient::StartProcessServer(
IN ULONG Flags,
IN PCSTR Options,
IN PVOID Reserved
);
HRESULT
IDebugClient5::StartProcessServerWide(
IN ULONG Flags,
IN PCWSTR Options,
IN PVOID Reserved
);
#ifdef UNICODE
#define StartProcessServerT StartProcessServerWide
#else
#define StartProcessServerT StartProcessServer
#endif
This method may also return error values. See Return Values for more details.
StartProcessServer is available in all versions of IDebugClient. StartProcessServerWide is available in IDebugClient5 and later versions.
The process server that is started will be accessible by remote clients through the transport specified in the Options parameter.
To stop the process server from the smart client, use the EndProcessServer method. To shut down the process server from the computer that it is running on, use Task Manager to end the process. If the instance of the debugger engine that used StartProcessServer is still running, it can use Execute to issue the debugger command .endsrv 0, which will end the process server (this is an exception to the usual behavior of .endsrv, which generally does not affect process servers).
For more information about process servers and remote debugging, see Process Servers, Kernel Connection Servers, and Smart Clients.
Headers: Defined in dbgeng.h. Include dbgeng.h.
WaitForProcessServerEnd, ConnectProcessServer, EndProcessServer, DisconnectProcessServer