IDebugThread2:: CanSetNextStatement

确定当前指令指针是否可以设置为特定堆栈帧。

HRESULT CanSetNextStatement ( 
   IDebugStackFrame2*  pStackFrame,
   IDebugCodeContext2* pCodeContext
);
int CanSetNextStatement ( 
   IDebugStackFrame2  pStackFrame,
   IDebugCodeContext2 pCodeContext
);

参数

  • pStackFrame
    保留供将来使用;设置为空值。 如果这是 null 值,请使用当前堆栈帧。

  • pCodeContext
    [in] 描述要执行的代码位置的 IDebugCodeContext2 对象及其上下文。

返回值

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

备注

如果此方法返回 S_OK,请调用 IDebugThread2:: SetNextStatement 方法实际设置下一条语句。

请参见

参考

IDebugThread2

IDebugStackFrame2

IDebugCodeContext2

IDebugThread2:: SetNextStatement