> ## 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.

# WdGetDefaultDevice

> WdGetDefaultDevice

저장된 기본 기기가 선택되어 있으면 해당 기기를 반환합니다.

**도입된 릴리스:** [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 WdGetDefaultDevice(
    _Out_ bool* deviceFound,
    _In_ WdDeviceInfoResultCallback callback,
    _In_opt_ void* context
);
```

### 매개 변수

`deviceFound`\
형식: **bool\***

기본 기기가 선택되어 있는지 여부를 나타내는 필수 출력입니다.

`callback`\
형식: **WdDeviceInfoResultCallback**

필수 결과 또는 열거 콜백입니다. 계속 진행 및 수명 규칙은 설명을 참조하세요.

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

콜백에 변경되지 않고 전달되는, 호출자가 소유한 선택적 컨텍스트입니다.

### 반환 값

형식: **HRESULT**

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

## 설명

`deviceFound`와 콜백은 모두 필수입니다. 기본 기기가 없으면 호출이 성공하고 `deviceFound`를 `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)
- [WdSetDefaultDevice](https://docs.xbox.com/ko/reference/remoting/functions/wdsetdefaultdevice.md)
- [WdGetDevice](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdevice.md)
- [WdGetDeviceProperty](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdeviceproperty.md)
- [WdGetDeviceStoragePath](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdevicestoragepath.md)
