Condividi tramite


IDebugBreakpointUnboundEvent2:: GetBreakpoint

Ottiene il punto di interruzione che è diventata non associato.

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

Parametri

  • ppBP
    [out] Restituisce IDebugBoundBreakpoint2 un oggetto che rappresenta il punto di interruzione che è diventata non associato.

Valore restituito

Se l'operazione riesce, restituisce S_OK; in caso contrario, restituisce un codice di errore.

Esempio

Nell'esempio seguente viene illustrato come implementare questo metodo per un oggetto di CBreakpointUnboundDebugEventBase che espone IDebugBreakpointUnboundEvent2 l'interfaccia.

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

Vedere anche

Riferimenti

IDebugBreakpointUnboundEvent2

IDebugBoundBreakpoint2