IDebugBreakpointBoundEvent2::GetPendingBreakpoint
Gets the pending breakpoint that is being bound.
HRESULT GetPendingBreakpoint(
IDebugPendingBreakpoint2** ppPendingBP
);
int GetPendingBreakpoint(
out IDebugPendingBreakpoint2 ppPendingBP
);
Parameters
- ppPendingBP
[out] Returns the IDebugPendingBreakpoint2 object that represents the pending breakpoint being bound.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Example
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 );
}