共用方式為


RoInspectCapturedStackBackTrace 函式 (roerrorapi.h)

提供一種方式,讓調試程式從目標進程檢查呼叫堆棧。

語法

HRESULT RoInspectCapturedStackBackTrace(
  [in]           UINT_PTR                 targetErrorInfoAddress,
                 USHORT                   machine,
                 PINSPECT_MEMORY_CALLBACK readMemoryCallback,
  [in, optional] PVOID                    context,
  [out]          UINT32                   *frameCount,
  [out]          UINT_PTR                 *targetBackTraceAddress
);

參數

[in] targetErrorInfoAddress

目標進程中錯誤資訊物件的位址。 藉由呼叫 RoInspectThreadErrorInfo 函式來取得 targetErrorInfoAddress

machine

要偵錯的電腦。

readMemoryCallback

從目標 TEB 位址空間讀取緩衝區的回呼函式。

[in, optional] context

自訂內容數據。

[out] frameCount

儲存在錯誤物件中的堆疊框架數目。

[out] targetBackTraceAddress

目標進程中的堆疊回溯追蹤位址。

傳回值

如果此函式成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

RoInspectCapturedStackBackTrace 函式會取得系統錯誤物件的指標,並以儲存在錯誤物件中的堆棧框架數目填滿 frameCount,並將 targetBackTraceAddress 填入目標進程中的堆疊回溯位址。 RoInspectCapturedStackBackTrace 函式會嘗試確認 targetErrorInfoAddress 點是系統錯誤物件,如果它不符合版本簽章,就會失敗。

藉由呼叫 RoInspectThreadErrorInfo 函式來取得 targetErrorInfoAddress

規格需求

需求
最低支援的用戶端 Windows 8.1 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 R2 [僅限傳統型應用程式]
目標平台 Windows
標頭 roerrorapi.h
程式庫 RuntimeObject.lib
Dll ComBase.dll

另請參閱

PINSPECT_MEMORY_CALLBACK

RoInspectThreadErrorInfo