Aracılığıyla paylaş


IDebugBreakpointUnboundEvent2::GetBreakpoint

İlişkisiz hale gelen kesme noktasını alır.

Sözdizimi

int GetBreakpoint(
    out IDebugBoundBreakpoint2 ppBP
);

Parametreler

ppBP
[out] İlişkisiz hale gelen kesme noktasını temsil eden bir IDebugBoundBreakpoint2 nesnesi döndürür.

İade Değeri

Başarılı olursa döndürür S_OK; aksi takdirde bir hata kodu döndürür.

Örnek

Aşağıdaki örnek, IDebugBreakpointUnboundEvent2 arabirimini kullanıma sunan bir CBreakpointUnboundDebugEventBase nesnesi için bu yöntemin nasıl uygulandığını gösterir.

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

Ayrıca bkz.