共用方式為


IDebugStackFrame2::GetCodeContext

取得此堆疊框架中的程式碼內容。

HRESULT GetCodeContext ( 
   IDebugCodeContext2** ppCodeCxt
);
int GetCodeContext ( 
   out IDebugCodeContext2 ppCodeCxt
);

參數

  • ppCodeCxt
    [] out傳回IDebugCodeContext2物件,代表目前的指令指標,此堆疊框架中。

傳回值

如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。

請參閱

參考

IDebugStackFrame2

IDebugCodeContext2