(winnt.h) RtlUnwind2 函式

起始程序呼叫框架的回溯。

語法

NTSYSAPI VOID RtlUnwind2(
  [in, optional] FRAME_POINTERS    TargetFrame,
  [in, optional] PVOID             TargetIp,
  [in, optional] PEXCEPTION_RECORD ExceptionRecord,
  [in]           PVOID             ReturnValue,
  [in]           PCONTEXT          ContextRecord
);

參數

[in, optional] TargetFrame

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

[in, optional] TargetIp

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

[in, optional] ExceptionRecord

EXCEPTION_RECORD結構的指標。

[in] ReturnValue

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

[in] ContextRecord

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

傳回值

此函式不會傳回值。

備註

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