IDebugBreakpointBoundEvent2::GetPendingBreakpoint
바인딩되는 보류 중인 중단점을 가져옵니다.
구문
HRESULT GetPendingBreakpoint(
IDebugPendingBreakpoint2** ppPendingBP
);
int GetPendingBreakpoint(
out IDebugPendingBreakpoint2 ppPendingBP
);
매개 변수
ppPendingBP
[out] 바인딩 중이며 보류 중인 중단점을 나타내는 IDebugPendingBreakpoint2 개체를 반환합니다.
Return Value
성공하면 S_OK
를 반환하고, 실패하면 오류 코드를 반환합니다.
예시
다음 예제에서는 IDebugBreakpointBoundEvent2 인터페이스를 노출하는 CBreakpointSetDebugEventBase 개체에 대해 이 메서드를 구현하는 방법을 보여 줍니다.
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 );
}