RoInspectThreadErrorInfo 함수(roerrorapi.h)

오류가 발생한 지점의 호출 스택을 나타내는 오류 개체를 가져옵니다.

구문

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

매개 변수

[in] targetTebAddress

TEB(대상 스레드 환경 블록)입니다.

machine

디버그할 컴퓨터입니다.

readMemoryCallback

대상 TEB 주소 공간에서 버퍼를 읽는 콜백 함수입니다.

[in, optional] context

사용자 지정 컨텍스트 데이터입니다.

[out] targetErrorInfoAddress

오류 개체의 주소입니다.

반환 값

이 함수가 성공하면 S_OK 반환합니다. 그러지 않으면 HRESULT 오류 코드를 반환합니다.

설명

RoInspectThreadErrorInfo 호출에 성공하면 targetErrorInfoAddress는 오류가 발생한 지점에서 호출 스택을 가져오기 위해 RoInspectCapturedStackBackTrace 함수에 전달할 수 있는 오류 개체의 주소를 포함합니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 8.1 [데스크톱 앱만 해당]
지원되는 최소 서버 R2 Windows Server 2012 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 roerrorapi.h
라이브러리 RuntimeObject.lib
DLL ComBase.dll

추가 정보

PINSPECT_MEMORY_CALLBACK

RoInspectCapturedStackBackTrace