共用方式為


IDebugStackFrame2::GetThread

Gets the thread associated with a stack frame.

HRESULT GetThread ( 
   IDebugThread2** ppThread
);
int GetThread ( 
   out IDebugThread2 ppThread
);

Parameters

  • ppThread
    [out] Returns an IDebugThread2 object that represents the thread.

Return Value

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

See Also

Reference

IDebugStackFrame2

IDebugThread2