Edit

Share via


IDebugThread2::CanSetNextStatement

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

Syntax

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 SetNextStatement method to actually set the next statement.

See also