다음을 통해 공유


IDebugBoundBreakpoint2::GetPendingBreakpoint

지정한 바인딩된 중단점에서 만든 보류 중인 중단점을 가져옵니다.

HRESULT GetPendingBreakpoint( 
   IDebugPendingBreakpoint2** ppPendingBreakpoint
);
int GetPendingBreakpoint( 
   out IDebugPendingBreakpoint2 ppPendingBreakpoint
);

매개 변수

  • ppPendingBreakpoint
    [out] 반환은 IDebugPendingBreakpoint2 이 만드는 데 사용 된 보류 중단점이 나타내는 개체 바인딩된 중단점입니다.

반환 값

성공 하면 반환 S_OK. 그렇지 않으면 오류 코드를 반환 합니다.

설명

보류 중단점 중단점 하나 또는 여러 프로그램에 적용할 수 있는 코드에 바인딩하는 데 필요한 모든 필요한 정보 컬렉션으로 간주할 수 있습니다.

예제

다음 예제에서는 단순에이 메서드를 구현 하는 방법을 보여 줍니다. CBoundBreakpoint 를 노출 하는 개체는 IDebugBoundBreakpoint2 인터페이스입니다.

HRESULT CBoundBreakpoint::GetPendingBreakpoint(
    IDebugPendingBreakpoint2** ppPendingBreakpoint)
{  
   HRESULT hr;  
  
   // Check for valid IDebugPendingBreakpoint2 interface pointer.  
   if (ppPendingBreakpoint)  
   {  
      // Be sure that the bound breakpoint has not been deleted. If
      // deleted, then return hr = E_BP_DELETED.  
      if (m_state != BPS_DELETED)  
      {  
         // Query for the IDebugPendingBreakpoint2 interface.  
         hr = m_pPendingBP->QueryInterface(IID_IDebugPendingBreakpoint2,
                                           (void**)ppPendingBreakpoint);  
      }  
      else  
      {  
         hr = E_BP_DELETED;  
      }  
   }  
   else  
   {  
      hr = E_INVALIDARG;  
   }  
  
   return hr;  
}  

참고 항목

참조

IDebugBoundBreakpoint2

IDebugPendingBreakpoint2