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

# XUserResolveIssueWithUiResult

> XUserResolveIssueWithUiResult

# XUserResolveIssueWithUiResult

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

## 구문

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

### 매개변수

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

[XUserResolveIssueWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiasync.md)에 전달한 AsyncBlock입니다.

### 반환값

형식: HRESULT

성공하면 S\_OK를 반환하고, 그렇지 않으면 오류 코드를 반환합니다. 오류 코드 목록은 [Error Codes](https://docs.xbox.com/ko/reference/errorcodes.md)를 참조하십시오.

| 반환 코드 | 설명 |
| - | - |
| S\_OK | 작업이 성공했습니다. |
| E\_ABORT | 사용자가 작업을 취소했습니다. |

## 설명

XUsers API가 E\_GAMEUSER\_RESOLVE\_USER\_ISSUE\_REQUIRED 오류를 반환하는 경우, 사용자는 문제를 해결하기 위해 시스템 사용자 인터페이스(UI)와 상호 작용해야 합니다.
적절한 시스템 UI를 표시하려면 [XUserResolveIssueWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiasync.md)를 호출합니다.

유니코드 URL로 토큰 문제를 해결하기 위한 시스템 사용자 인터페이스를 표시하려면 [XUserResolveIssueWithUiUtf16Async](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16async.md)를 호출합니다.

[XUserResolveIssueWithUiUtf16Async](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16async.md) 호출의 결과를 검색하려면 [XUserResolveIssueWithUiUtf16Result](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16result.md)를 호출합니다.

다음 예제에서는 URL로 토큰 문제를 해결하기 위한 시스템 UI를 표시하는 방법을 보여줍니다.

```cpp theme={null}
HRESULT ResolveUserIssueComplete(XAsyncBlock* ab)
{
    if (SUCCEEDED_LOG(XUserResolveIssueWithUiResult(ab)))
    {
        appLog.AddLog("Successfully Resolved User Issue\n");
    }

    return S_OK;
}

HRESULT ResolveUserIssueUtf16Complete(XAsyncBlock* ab)
{
    if (SUCCEEDED_LOG(XUserResolveIssueWithUiUtf16Result(ab)))
    {
        appLog.AddLog("Successfully Resolved User Issue\n");
    }

    return S_OK;
}

HRESULT ResolveUserIssueWithUiAsync(
    XTaskQueueHandle queue,
    const char* narrowUrl = nullptr,
    const wchar_t* wideUrl = nullptr,
    bool useUtf16 = false)
{
    auto resolveAsyncBlock = std::make_unique<XAsyncBlock>();
    ZeroMemory(resolveAsyncBlock.get(), sizeof(*resolveAsyncBlock));
    resolveAsyncBlock->queue = queue;
    resolveAsyncBlock->context = this;

    if (useUtf16)
    {
        resolveAsyncBlock->callback = [](XAsyncBlock* ab)
        {
            auto asyncBlock = std::unique_ptr<XAsyncBlock>(ab);
            LOG_IF_FAILED(static_cast<User*>(ab->context)->ResolveUserIssueUtf16Complete(ab));
        };

        if (SUCCEEDED_LOG(XUserResolveIssueWithUiUtf16Async(
            _handle.get(),
            wideUrl,
            resolveAsyncBlock.get())))
        {
            // The call succeeded, so release the std::unique_ptr ownership of XAsyncBlock* since the callback will take over ownership.
            // If the call fails, the std::unique_ptr will keep ownership and delete the XAsyncBlock*
            resolveAsyncBlock.release();
        }
    }
    else
    {
        resolveAsyncBlock->callback = [](XAsyncBlock* ab)
        {
            auto asyncBlock = std::unique_ptr<XAsyncBlock>(ab);
            LOG_IF_FAILED(static_cast<User*>(ab->context)->ResolveUserIssueComplete(ab));
        };

        if (SUCCEEDED_LOG(XUserResolveIssueWithUiAsync(
            _handle.get(),
            narrowUrl,
            resolveAsyncBlock.get())))
        {
            // The call succeeded, so release the std::unique_ptr ownership of XAsyncBlock* since the callback will take over ownership.
            // If the call fails, the std::unique_ptr will keep ownership and delete the XAsyncBlock*
            resolveAsyncBlock.release();
        }
    }

    return S_OK;
}
```

## 요구 사항

**헤더:** XUser.h

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

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

## 함께 보기

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

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

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

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


## Related topics

- [XUserResolveIssueWithUiAsync](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiasync.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)
- [XUserResolveIssueWithUiUtf16Result](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16result.md)
- [XUserResolveIssueWithUiUtf16Async](https://docs.xbox.com/ko/reference/system/xuser/functions/xuserresolveissuewithuiutf16async.md)
