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

# XUserResolvePrivilegeWithUiResult

> XUserResolvePrivilegeWithUiResult

# XUserResolvePrivilegeWithUiResult

Recupera o resultado de uma chamada para [XUserResolvePrivilegeWithUiAsync](/pt-BR/reference/system/xuser/functions/xuserresolveprivilegewithuiasync).

## Sintaxe

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

### Parâmetros

*async*   \_Inout\_
Tipo: [XAsyncBlock\*](/pt-BR/reference/system/xasync/structs/xasyncblock)

Um [XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock) para sondar o status da chamada e recuperar os resultados da chamada.

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

| Código de retorno | Descrição |
| - | - |
| S\_OK | A operação foi bem-sucedida |
| E\_ABORT | O usuário cancelou a operação |
| E\_GAMEUSER\_FAILED\_TO\_RESOLVE | Falha ao resolver o privilégio fornecido |
| E\_GAMEUSER\_NO\_AUTH\_USER | O jogo deve chamar [XUserResolvePrivilegeWithUiAsync](/pt-BR/reference/system/xuser/functions/xuserresolveprivilegewithuiasync) novamente. |

## Comentários

> <img src="https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/caution.gif?s=2e4f582499c4cb4859c57646638ae366" alt="alert" width="11" height="11" data-path="images/gdk/reference/caution.gif" /> **OBSERVAÇÃO:** Se **XUserResolvePrivilegeWithUiAsync** for chamado logo após
> a conectividade de rede ser estabelecida, **XUserResolvePrivilegeWithUiResult** poderá retornar
> E\_GAMEUSER\_NO\_AUTH\_USER mesmo que você tenha um usuário conectado. Os jogos que encontrarem esse problema devem tentar
> chamar [XUserResolvePrivilegeWithUiAsync](/pt-BR/reference/system/xuser/functions/xuserresolveprivilegewithuiasync) novamente.

Para exibir uma interface do usuário que permite que um usuário resolva problemas de privilégio, chame [XUserResolvePrivilegeWithUiAsync](/pt-BR/reference/system/xuser/functions/xuserresolveprivilegewithuiasync).

O exemplo a seguir mostra como usar a função **XUserResolvePrivilegeWithUiResult**.

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

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

## Requisitos

**Cabeçalho:** XUser.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatíveis:** Windows, Steam Deck, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XUser](/pt-BR/reference/system/xuser/xuser_members)

[XUserResolvePrivilegeWithUiAsync](/pt-BR/reference/system/xuser/functions/xuserresolveprivilegewithuiasync)


## Related topics

- [XUserResolvePrivilegeWithUiResult](/reference/system/xuser/functions/xuserresolveprivilegewithuiresult.md)
- [XUserResolvePrivilegeWithUiAsync](/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)
