IDebugBreakpointBoundEvent2::GetPendingBreakpoint
取得正在進行繫結的暫止中斷點。
HRESULT GetPendingBreakpoint(
IDebugPendingBreakpoint2** ppPendingBP
);
int GetPendingBreakpoint(
out IDebugPendingBreakpoint2 ppPendingBP
);
參數
- ppPendingBP
[] out傳回IDebugPendingBreakpoint2物件,表示要繫結的暫止中斷點。
傳回值
如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。
範例
下列範例會示範如何實作這個方法,如 CBreakpointSetDebugEventBase 物件,公開 (expose) 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 );
}