IDebugBreakpointBoundEvent2::GetPendingBreakpoint
如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件。
取得與所繫結暫止中斷點。
語法
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 );
}