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

# XStoreShowPurchaseUIResult

> XStoreShowPurchaseUIResult

# XStoreShowPurchaseUIResult

Obtém os resultados de uma chamada para [XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync).

## Sintaxe

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

### Parâmetros

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

O XAsyncBlock que foi passado para [XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync). O [XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock) pode ser usado para sondar o status da chamada e recuperar os resultados da chamada. Consulte [XAsyncBlock](/pt-BR/reference/system/xasync/structs/xasyncblock) para obter mais informações.

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

S\_OK indica que a compra foi concluída, mas você sempre deve atualizar os dados de licenças e coleções do usuário antes de conceder acesso ao conteúdo

E\_ABORT indica que o usuário cancelou o fluxo de compra.

## Comentários

Esta função de resultado permite recuperar os resultados da execução de [XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync). Dessa forma, esta função deve ser chamada depois que [XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync) tiver sido chamada, geralmente no contexto de uma função de retorno de chamada. Esta função pode ser particularmente útil para descobrir por que a interface do usuário não foi exibida em casos de falha.

Consulte [XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync) para ver um exemplo de uso.

## Requisitos

**Cabeçalho:** XStore.h (incluído em XGameRuntime.h)

**Biblioteca:** xgameruntime.lib

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

## Confira também

[XStore](/pt-BR/reference/system/xstore/xstore_members)\
[XStoreShowPurchaseUIAsync](/pt-BR/reference/system/xstore/functions/xstoreshowpurchaseuiasync)


## Related topics

- [XStoreShowPurchaseUIResult](/reference/system/xstore/functions/xstoreshowpurchaseuiresult.md)
- [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreShowRedeemTokenUIResult](/reference/system/xstore/functions/xstoreshowredeemtokenuiresult.md)
- [Troubleshooting XStore development](/publishing/xstore-commerce/xstore-troubleshooting.md)
