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

# WdSetDefaultDevice

> WdSetDefaultDevice

저장된 기본 기기를 설정하거나 지웁니다.

**도입된 릴리스:** [RIT 0.0.14-preview](https://docs.xbox.com/ko/reference/remoting/release-versions.md#release-versions).

## 구문

```cpp theme={null}
HRESULT WD_REMOTE_ITERATION_CALL WdSetDefaultDevice(
    _In_opt_z_ const char* remoteDevice,
    _In_ bool createIfMissing
);
```

### 매개 변수

`remoteDevice`\
형식: **const char\***

선택할 저장된 기기의 UTF-8 이름이거나, `createIfMissing`이 false일 때 기본값을 지우려면 `nullptr`입니다.

`createIfMissing`\
형식: **bool**

저장되지 않은 기기를 선택할 때 최소한의 레코드를 생성할지 여부입니다.

### 반환 값

형식: **HRESULT**

성공 시 `S_OK`를 반환하고, 그렇지 않으면 실패 HRESULT를 반환합니다. 카탈로그 작업은 [오류 코드](https://docs.xbox.com/ko/reference/remoting/error-codes.md)에 설명된 카탈로그별 오류도 반환합니다.

## 설명

필요할 때 최소한의 레코드를 생성하려면 `createIfMissing`을 `true`로 설정하세요. 그렇지 않으면 레코드가 없을 때 `WD_E_DEVICE_NOTFOUND`를 반환합니다. 레코드를 제거하지 않고 기본값을 지우려면 `nullptr`과 `false`를 전달하세요. 서로 경쟁하는 기본값 변경을 프로세스 간 트랜잭션처럼 실행하지 마세요.

저장된 기기 API와 페어링 ID API는 서로 다른 로컬 저장소를 변경합니다. 이러한 API는 원격 API 호출의 명시적인 `remoteDevice` 인수를 대체하지 않습니다. 기본 기기 선택을 사용하려는 호출자는 직접 이를 확인해야 합니다.

## 요구 사항

| 요구 사항 | 값 |
| - | - |
| **헤더** | WdRemoteIteration.h |
| **라이브러리** | wdremoteapi.lib |
| **NuGet 패키지** | [Microsoft.GDK.RemoteIterationClientApi](https://aka.ms/GameDevRemoteAPI) |

## 함께 보기

* [XBOX PC Remote Iteration API](https://docs.xbox.com/ko/reference/remoting/remoteiteration_members.md)


## Related topics

- [XBOX PC Remote Iteration API](https://docs.xbox.com/ko/reference/remoting/remoteiteration_members.md)
- [WdSetDevice](https://docs.xbox.com/ko/reference/remoting/functions/wdsetdevice.md)
- [WdGetDefaultDevice](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdefaultdevice.md)
- [WdSetDeviceProperty](https://docs.xbox.com/ko/reference/remoting/functions/wdsetdeviceproperty.md)
- [IGameInputDevice::SetLightingColor](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setlightingcolor.md)
