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

# WdGetDevice

> WdGetDevice

저장된 기기 하나를 생성하지 않고 반환합니다.

**도입된 릴리스:** [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 WdGetDevice(
    _In_z_ const char* remoteDevice,
    _In_ WdDeviceInfoResultCallback callback,
    _In_opt_ void* context
);
```

### 매개 변수

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

UTF-8로 인코딩된 저장된 기기 이름 또는 IP 주소입니다. 이 작업은 현재 사용자의 로컬 카탈로그에서 수행됩니다.

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

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

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

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

### 반환 값

형식: **HRESULT**

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

## 설명

레코드가 없으면 `WD_E_DEVICE_NOTFOUND`를 반환합니다. 호출이 성공하면 필수 콜백이 한 번 호출됩니다. 반환된 구조체와 문자열은 콜백 중에만 유효합니다.

저장된 기기 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)
- [WdGetDeviceProperty](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdeviceproperty.md)
- [WdGetDeviceStoragePath](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdevicestoragepath.md)
- [WdGetDefaultDevice](https://docs.xbox.com/ko/reference/remoting/functions/wdgetdefaultdevice.md)
- [WdEnumDevices](https://docs.xbox.com/ko/reference/remoting/functions/wdenumdevices.md)
