IDebugBreakpointBoundEvent2::GetPendingBreakpointIDebugBreakpointBoundEvent2::GetPendingBreakpoint

Obtiene el punto de interrupción pendiente que se va a enlazar.Gets the pending breakpoint that is being bound.

SintaxisSyntax

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

ParámetrosParameters

ppPendingBP
[out] Devuelve el IDebugPendingBreakpoint2 objeto que representa el punto de interrupción pendiente que se va a enlazar.[out] Returns the IDebugPendingBreakpoint2 object that represents the pending breakpoint being bound.

Valor devueltoReturn Value

Si se realiza correctamente, devuelve S_OK; en caso contrario, devuelve un código de error.If successful, returns S_OK; otherwise, returns an error code.

EjemploExample

En el ejemplo siguiente se muestra cómo implementar este método para un CBreakpointSetDebugEventBase objeto que expone la IDebugBreakpointBoundEvent2 interfaz.The following example shows how to implement this method for a CBreakpointSetDebugEventBase object that exposes the IDebugBreakpointBoundEvent2 interface.

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

Vea tambiénSee Also

IDebugBreakpointBoundEvent2 IDebugBreakpointBoundEvent2
IDebugPendingBreakpoint2IDebugPendingBreakpoint2