Export (0) Print
Expand All
Expand Minimize

RoInspectThreadErrorInfo function

Gets the error object that represents the call stack at the point where the error originated

Syntax


HRESULT WINAPI RoInspectThreadErrorInfo(
  _In_      UINT *targetTebAddress,
  USHORT machine,
  PINSPECT_MEMORY_CALLBACK readMemoryCallback,
  _In_opt_  VOID *context,
  _Out_     UINT **targetErrorInfoAddress
);

Parameters

targetTebAddress [in]

The target thread environment block (TEB).

machine

The machine to debug.

readMemoryCallback

A callback function to read the buffer from the target TEB address space.

context [in, optional]

Custom context data.

targetErrorInfoAddress [out]

The address of the error object.

Return value

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

Remarks

When the call to RoInspectThreadErrorInfo is successful, targetErrorInfoAddress contains the address of an error object that you can pass to the RoInspectCapturedStackBackTrace function to get the call stack at the point where the error was originated.

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Roerrorapi.h

See also

RoInspectCapturedStackBackTrace
PINSPECT_MEMORY_CALLBACK

 

 

Community Additions

ADD
Show:
© 2015 Microsoft