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

# XUserResolvePrivilegeWithUiResult

> XUserResolvePrivilegeWithUiResult

# XUserResolvePrivilegeWithUiResult

[XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md) 호출의 결과를 검색합니다.

## 구문

```cpp theme={null}
HRESULT XUserResolvePrivilegeWithUiResult(
         XAsyncBlock* async
)
```

### 매개변수

*async*   \_Inout\_
형식: [XAsyncBlock\*](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)

호출의 상태를 폴링하고 호출 결과를 가져오기 위한 [XAsyncBlock](https://docs.xbox.com/ko/reference/system/xasync/structs/xasyncblock.md)입니다.

### 반환값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다.

| 반환 코드 | 설명 |
| - | - |
| S\_OK | 작업이 성공했습니다. |
| E\_ABORT | 사용자가 작업을 취소했습니다. |
| E\_GAMEUSER\_FAILED\_TO\_RESOLVE | 지정된 권한을 해결하지 못했습니다. |
| E\_GAMEUSER\_NO\_AUTH\_USER | 게임이 [XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)를 다시 호출해야 합니다. |

## 설명

> ![alert](https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/caution.gif?s=2e4f582499c4cb4859c57646638ae366) **참고:** **XUserResolvePrivilegeWithUiAsync**를 네트워크 연결이 설정된 직후에 호출하는 경우, 로그인된 사용자가 있어도 **XUserResolvePrivilegeWithUiResult**가 E\_GAMEUSER\_NO\_AUTH\_USER를 반환할 수 있습니다. 이 문제가 발생하는 게임은 [XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)를 다시 호출해 보아야 합니다.

사용자가 권한 문제를 해결할 수 있도록 사용자 인터페이스를 표시하려면 [XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)를 호출합니다.

다음 예제에서는 **XUserResolvePrivilegeWithUiResult** 함수를 사용하는 방법을 보여줍니다.

```cpp theme={null}
HRESULT hr = XUserResolvePrivilegeWithUiResult(asyncBlock);

if (SUCCEEDED(hr))
{
    OutputDebugStringA(""Successfully resolved privilege\n"");
}
else
{
    OutputDebugStringA(""Failed to resolved privilege\n"");
}
```

## 요구 사항

**헤더:** XUser.h

**라이브러리:** xgameruntime.lib

**지원되는 플랫폼:** Windows, Steam Deck, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XUser](https://docs.xbox.com/ko/reference/system/xuser/xuser_members.md)

[XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)


## Related topics

- [XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)
- [XUser (API 콘텐츠)](https://docs.xbox.com/ko/reference/system/xuser/xuser_members.md)
- [Unity 프로젝트에서 GDK API용 C# 래퍼 사용](https://docs.xbox.com/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XUserResolveIssueWithUiResult](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiresult.md)
- [XUserResolveIssueWithUiUtf16Result](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16result.md)
