IDebugControl3::RemoveBreakpoint method

The RemoveBreakpoint method removes a breakpoint.

Syntax

HRESULT RemoveBreakpoint(
  PDEBUG_BREAKPOINT Bp
);

Parameters

Bp

Specifies an interface pointer to breakpoint to remove.

Return Value

Return code Description
S_OK
The method was successful.
 

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

Remarks

After RemoveBreakpoint and RemoveBreakpoint2 are called, the breakpoint object specified in the Bp parameter must not be used again.

Note   Even though IDebugBreakpoint extends the COM interface IUnknown, the lifetime of the breakpoint is not controlled using the IUnknown interface. Instead, the breakpoint is deleted after RemoveBreakpoint and RemoveBreakpoint2 are called.
 
For more details, see Using Breakpoints.

Requirements

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

See Also

AddBreakpoint

IDebugBreakpoint

IDebugControl

IDebugControl2

IDebugControl3