IDebugClient5::CreateClient method

The CreateClient method creates a new client object for the current thread.

Syntax

HRESULT CreateClient(
  PDEBUG_CLIENT *Client
);

Parameters

Client

Receives an interface pointer for the new client.

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

This method creates a client that may be used in the current thread.

Clients are specific to the thread that created them. Calls from other threads fail immediately. The CreateClient method is a notable exception; it allows creation of a new client for a new thread.

All callbacks for a client are made in the thread with which the client was created.

For more information about client objects and how they are used in the debugger engine, see Client Objects.

Requirements

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

See Also

DebugCreate

IDebugClient

IDebugClient2

IDebugClient3

IDebugClient4

IDebugClient5