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

# XStoreGetUserPurchaseIdResult

> XStoreGetUserPurchaseIdResult

# XStoreGetUserPurchaseIdResult

Obtém o resultado de uma chamada para [XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync).

## Sintaxe

```cpp theme={null}
HRESULT XStoreGetUserPurchaseIdResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  
```

### Parâmetros

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

O XAsyncBlock passado para [XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync). 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.

*size*   \_In\_\
Tipo: size\_t

O tamanho da matriz passada para **result**.

*result*   \_Out\_writes\_z\_(size)\
Tipo: char\*

Em caso de êxito, contém a ID de compra recuperada.

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

## Comentários

Esta função de resultado permite recuperar os resultados da execução de [XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync), bem como a ID de compra solicitada, se a execução tiver sido bem-sucedida. Assim, esta função deve ser chamada depois que [XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync) tiver sido chamada, geralmente no contexto de uma função de retorno de chamada.

Consulte [XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync) para obter um exemplo de uso.

## Requisitos

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

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XStore](/pt-BR/reference/system/xstore/xstore_members)\
[XStoreGetUserPurchaseIdAsync](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidasync)\
[XStoreGetUSerPurchaseIdResultSize](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize)


## Related topics

- [XStoreGetUserPurchaseIdResult](/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md)
- [XStoreGetUserPurchaseIdResultSize](/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize.md)
- [XStoreGetUserPurchaseIdAsync](/ko/reference/system/xstore/functions/xstoregetuserpurchaseidasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
