> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WdCopyErrorCallback

> WdCopyErrorCallback

# WdCopyErrorCallback

복사 작업 중 오류 및 경고 메시지를 보고하기 위해 호출됩니다.

## 구문

```cpp theme={null}
typedef HRESULT (*WdCopyErrorCallback)( 
    _In_ WdCopyErrorSeverity severity,
    _In_z_ const char* message,
    _In_ HRESULT error,
    _In_opt_ void* context
);
```

### 매개 변수

`severity _In_`\
형식: **[WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity)**

메시지의 심각도(Warning 또는 Error)입니다.

`message _In_z_`\
형식: **const char\***

진단 메시지를 포함하는 null로 끝나는 문자열입니다.

`error _In_`\
형식: **HRESULT**

메시지와 연결된 HRESULT 오류 코드입니다. 경고 메시지의 경우 `S_OK`입니다.

`context _In_opt_`\
형식: **void\***

[WdCopyStatusCallbacks](/reference/remoting/structs/wdcopystatuscallbacks) 구조체에 지정된 사용자 정의 컨텍스트 포인터입니다.

### 반환 값

형식: **HRESULT**

복사 작업을 계속하려면 `S_OK`를 반환합니다. 복사를 중단하려면 실패 HRESULT를 반환합니다.

## 설명

이 콜백은 복사 작업 중 오류 또는 경고와 같은 진단 메시지를 보고하기 위해 [WdRemoteCopy](/reference/remoting/functions/wdremotecopy)에 의해 호출됩니다. `error` 매개 변수는 오류 메시지와 연결된 HRESULT를 제공합니다. 경고 메시지의 경우 `error`는 `S_OK`입니다.

콜백은 `WdRemoteCopy` 호출과 동일한 스레드에서 호출됩니다. `message` 문자열은 콜백 호출 기간 동안에만 유효합니다.

## 요구 사항

| 요구 사항       | 값                   |
| ----------- | ------------------- |
| **헤더**      | WdRemoteIteration.h |
| **라이브러리**   | wdremoteapi.lib     |
| **지원 OS**   | Windows 11 이상       |
| **지원 아키텍처** | x64, ARM64          |

## 함께 보기

* [WdRemoteCopy](/reference/remoting/functions/wdremotecopy)
* [WdCopyErrorSeverity](/reference/remoting/enums/wdcopyerrorseverity)
* [WdCopyStatusCallbacks](/reference/remoting/structs/wdcopystatuscallbacks)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)
