IDebugBreakpointUnboundEvent2::GetBreakpoint
Gets the breakpoint that became unbound.
HRESULT GetBreakpoint(
IDebugBoundBreakpoint2** ppBP
);
int GetBreakpoint(
out IDebugBoundBreakpoint2 ppBP
);
Parameters
- ppBP
[out] Returns an IDebugBoundBreakpoint2 object that represents the breakpoint that became unbound.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Example
The following example shows how to implement this method for a CBreakpointUnboundDebugEventBase object that exposes the IDebugBreakpointUnboundEvent2 interface.
STDMETHODIMP CBreakpointUnboundDebugEventBase::GetBreakpoint(
IDebugBoundBreakpoint2 **ppbp)
{
HRESULT hRes = E_FAIL;
if ( ppbp )
{
if ( m_pbp )
{
IDebugBoundBreakpoint2 *pibp;
hRes = m_pbp->QueryInterface(IID_IDebugBoundBreakpoint2, (void **) & pibp);
if ( S_OK == hRes )
*ppbp = pibp;
}
else
hRes = E_FAIL;
}
else
hRes = E_INVALIDARG;
return ( hRes );
}