다음을 통해 공유


IDebugBreakpointBoundEvent2::GetPendingBreakpoint

바인딩되는 보류 중단점을 가져옵니다.

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

매개 변수

  • ppPendingBP
    [out] 반환은 IDebugPendingBreakpoint2 바인딩되는 보류 중인 중단점을 나타내는 개체입니다.

반환 값

성공 하면 반환 S_OK. 그렇지 않으면 오류 코드를 반환 합니다.

예제

다음 예제에서는이 메서드를 구현 하는 방법을 보여 줍니다 있는 CBreakpointSetDebugEventBase 를 노출 하는 개체는 IDebugBreakpointBoundEvent2 인터페이스.

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