RoInspectThreadErrorInfo function (roerrorapi.h)

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

Syntax

HRESULT RoInspectThreadErrorInfo(
  [in]           UINT_PTR                 targetTebAddress,
                 USHORT                   machine,
                 PINSPECT_MEMORY_CALLBACK readMemoryCallback,
  [in, optional] PVOID                    context,
  [out]          UINT_PTR                 *targetErrorInfoAddress
);

Parameters

[in] targetTebAddress

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.

[in, optional] context

Custom context data.

[out] targetErrorInfoAddress

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

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header roerrorapi.h
Library RuntimeObject.lib
DLL ComBase.dll

See also

PINSPECT_MEMORY_CALLBACK

RoInspectCapturedStackBackTrace