PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK callback function

The ReconstructStack callback function queries dump stream provider on a per-thread basis.

C++
 CALLBACK* PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK ReconstructStack;

Syntax

PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK PdebugStackProviderReconstructstack;

HRESULT PdebugStackProviderReconstructstack(
  ULONG SystemThreadId,
  PDEBUG_STACK_FRAME_EX NativeFrames,
  ULONG CountNativeFrames,
  PSTACK_SYM_FRAME_INFO *StackSymFrames,
  PULONG StackSymFramesFilled
)
{...}

Parameters

SystemThreadId

A system thread ID.

NativeFrames

Native frames.

CountNativeFrames

Specifies the number of native frames.

StackSymFrames

StackSymFramesFilled

Symbol frames stack filled value.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function returns stack frames and symbolic data.

New in-line frames may be provided.

Stack dump provider must be enabled.

ReconstructStack is called PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK in the Dbgeng.h header file.

Requirements

   
Target Platform Windows
Header dbgeng.h (include Dbgeng.h)