IDebugBreakpointUnboundEvent2:: GetBreakpoint

获取变为未绑定断点。

HRESULT GetBreakpoint( 
   IDebugBoundBreakpoint2** ppBP
);
int GetBreakpoint( 
   out IDebugBoundBreakpoint2 ppBP
);

参数

返回值

如果成功,则返回; S_OK否则,返回错误代码。

示例

下面的示例演示如何执行显示 IDebugBreakpointUnboundEvent2 接口的 CBreakpointUnboundDebugEventBase 对象的方法。

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 );
}

请参见

参考

IDebugBreakpointUnboundEvent2

IDebugBoundBreakpoint2