DebugCreate function

The DebugCreate function creates a new client object and returns an interface pointer to it.

Syntax

HRESULT DebugCreate(
  REFIID InterfaceId,
  PVOID  *Interface
);

Parameters

InterfaceId

Specifies the interface identifier (IID) of the desired debugger engine client interface. This is the type of the interface that will be returned in Interface. For information about the interface identifier, see Using Client Objects.

Interface

Receives an interface pointer for the new client. The type of this interface is specified by InterfaceId.

Return Value

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

Return code Description
S_OK
The function was successful.
E_NOINTERFACE
The client object doesn't implement the specified interface.

Remarks

The parameters passed to DebugCreate are the same as those passed to IUnknown::QueryInterface, and they are treated the same way.

As with IUnknown::QueryInterface, when the returned interface is no longer needed, its IUnknown::Release method should be called.

Requirements

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

See Also

Client Objects