IDebugBreakpointBoundEvent2:: GetPendingBreakpoint

获取必须挂起的断点。

HRESULT GetPendingBreakpoint( 
   IDebugPendingBreakpoint2** ppPendingBP
);
int GetPendingBreakpoint( 
   out IDebugPendingBreakpoint2 ppPendingBP
);

参数

返回值

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

示例

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

STDMETHODIMP CBreakpointSetDebugEventBase::GetPendingBreakpoint(
    IDebugPendingBreakpoint2 **ppPendingBP)
{
    HRESULT hRes = E_FAIL;

    if ( ppPendingBP )
    {
        if ( m_pPendingBP )
        {
            *ppPendingBP = m_pPendingBP;

            m_pPendingBP->AddRef();

            hRes = S_OK;
        }
        else
            hRes = E_FAIL;
    }
    else
        hRes = E_INVALIDARG;

    return ( hRes );
}

请参见

参考

IDebugBreakpointBoundEvent2

IDebugPendingBreakpoint2