RtlUnwindEx 函式 (winnt.h)

起始過程調用框架的回溯。

語法

NTSYSAPI VOID RtlUnwindEx(
  [in, optional] PVOID                 TargetFrame,
  [in, optional] PVOID                 TargetIp,
  [in, optional] PEXCEPTION_RECORD     ExceptionRecord,
  [in]           PVOID                 ReturnValue,
  [in]           PCONTEXT              ContextRecord,
  [in, optional] PUNWIND_HISTORY_TABLE HistoryTable
);

參數

[in, optional] TargetFrame

回溯目標之呼叫框架的指標。 如果此參數為 NULL,則函式會執行結束回溯。

[in, optional] TargetIp

回溯的接續位址。 如果 TargetFrameNULL,則會忽略此參數。

[in, optional] ExceptionRecord

EXCEPTION_RECORD 結構的指標。

[in] ReturnValue

在繼續執行之前,要放在整數函式中的值會傳回緩存器。

[in] ContextRecord

在回溯作業期間儲存內容的 CONTEXT 結構的指標。

[in, optional] HistoryTable

回溯記錄數據表的指標。 這個結構是處理器特定的。 如需此結構的定義,請參閱 Winternl.h

傳回值

此函式不會傳回值。

備註

FRAME_POINTERS 結構的定義如下:

typedef struct _FRAME_POINTERS {
    ULONGLONG MemoryStackFp;
    ULONGLONG BackingStoreFp;
} FRAME_POINTERS, *PFRAME_POINTERS;

規格需求

需求
目標平台 Windows
標頭 winnt.h (包括 Windows.h)
程式庫 Kernel32.lib
DLL Kernel32.dll

另請參閱

上下文

EXCEPTION_RECORD

VBS 記憶體保護區中可用的 Vertdll API