IDebugControl4::RemoveBreakpoint2 method (dbgeng.h)

The RemoveBreakpoint2 method removes a breakpoint.

Syntax

HRESULT RemoveBreakpoint2(
  [in] PDEBUG_BREAKPOINT2 Bp
);

Parameters

[in] 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

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

See also

AddBreakpoint

IDebugBreakpoint

IDebugControl4