Debugging Tools for Windows

WaitForProcessServerEnd

The WaitForProcessServerEnd method waits for a local process server to exit.

HRESULT
  IDebugClient2::WaitForProcessServerEnd(
    IN ULONG  Timeout
    );

Parameters

Timeout
Specifies how long in milliseconds to wait for a process server to exit. If Timeout is INFINITE, this method will not return until a process server has ended.

Return Value

S_OK
The method was successful.
S_FALSE
A time-out occurred — Timeout milliseconds passed without a local process server exiting.

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

Interface Version

WaitForProcessServerEnd is available in IDebugClient2 and later versions.

Comments

This method will only wait for the first local process server to end. After a process server has ended, subsequent calls to this method will return immediately.

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

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h. The constant INFINITE is defined in winbase.h.

See Also

StartProcessServer, EndProcessServer

Build machine: CAPEBUILD