IDebugBoundBreakpoint2:: GetState

获取此绑定断点状态。

HRESULT GetState( 
   BP_STATE* pState
);
int GetState( 
   out enum_BP_STATE pState
);

参数

  • pState
    [out] 返回从描述断点状态的 BP_STATE 枚举的值。

返回值

如果成功,则返回; S_OK否则,返回错误代码。

示例

下面的示例演示如何执行显示 IDebugBoundBreakpoint2 接口的简单 CBoundBreakpoint 对象的方法。

HRESULT CBoundBreakpoint::GetState(BP_STATE* pState)  
{  
   HRESULT hr;  
  
   // Check for a valid pointer to pState and assign the local state variable.  
   if (pState)  
   {  
      *pState = m_state;  
      hr = S_OK;  
   }  
   else  
   {  
      hr = E_INVALIDARG;  
   }  
  
   return hr;  
}  

请参见

参考

IDebugBoundBreakpoint2

BP_STATE