Compartilhar via


IDebugThread2::CanSetNextStatement

Determines whether the current instruction pointer can be set to the given stack frame.

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

Parameters

  • pStackFrame
    Reserved for future use; set to a null value. If this is a null value, use the current stack frame.

  • pCodeContext
    [in] An IDebugCodeContext2 object that describes the code location about to be executed and its context.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

If this method returns S_OK, then call the IDebugThread2::SetNextStatement method to actually set the next statement.

See Also

Reference

IDebugThread2

IDebugStackFrame2

IDebugCodeContext2

IDebugThread2::SetNextStatement