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

# XUserFindControllerForUserWithUiResult

> XUserFindControllerForUserWithUiResult

# XUserFindControllerForUserWithUiResult

사용자가 사용하기로 선택한 응용 프로그램 로컬 장치 ID(APP\_LOCAL\_DEVICE\_ID)를 가져옵니다.

## 구문

```cpp theme={null}
HRESULT XUserFindControllerForUserWithUiResult(  
         XAsyncBlock* async,  
         APP_LOCAL_DEVICE_ID* deviceId  
)  
```

### 매개변수

*async*   \_Inout\_\
형식: XAsyncBlock\*

[XUserFindControllerForUserWithUiAsync](/reference/system/xuser/functions/xuserfindcontrollerforuserwithuiasync)에 전달된 async 블록입니다.

*deviceId*   \_Out\_\
형식: APP\_LOCAL\_DEVICE\_ID\*

이제 사용자에게 연결된 컨트롤러의 장치 ID입니다.

### 반환값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다. 오류 코드 목록은 [Error Codes](/reference/errorcodes)를 참조하십시오.

### 설명

데스크탑에서 이 함수는 항상 모두 0인 장치 ID를 반환합니다.

## 요구 사항

**헤더:** XUser.h\
**라이브러리:** xgameruntime.lib\
**지원되는 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XUser](/reference/system/xuser/xuser_members)\
[컨트롤러 손실 처리(NDA 항목)](/build/core-features/common/user/users-dealing-with-controller-loss)


## Related topics

- [XUserFindControllerForUserWithUiAsync](/ko/reference/system/xuser/functions/xuserfindcontrollerforuserwithuiasync.md)
- [컨트롤러 손실 처리](/ko/build/core-features/common/user/users-dealing-with-controller-loss.md)
- [XUser](/ko/reference/system/xuser/xuser_members.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XUserResolveIssueWithUiResult](/ko/reference/system/xuser/functions/xuserresolveissuewithuiresult.md)
