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

# XStoreGetUserPurchaseIdResultSize

> XStoreGetUserPurchaseIdResultSize

# XStoreGetUserPurchaseIdResultSize

Obtém o tamanho do resultado retornado por [XStoreGetUserPurchaseIdResult](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresult).

## Sintaxe

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

### Parâmetros

*async*   \_In\_\
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*   \_Out\_\
Tipo: size\_t\*

Em caso de êxito, retorna o tamanho do resultado que será retornado por [XStoreGetUserPurchaseIdResult](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresult).

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

## Comentários

Esta função de resultado permite recuperar o tamanho da ID de compra quando [XStoreGetUserPurchaseIdResult](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresult) foi chamada. Assim, esta função deve ser chamada depois que [XStoreGetUserPurchaseIdResult](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresult) 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)\
[XStoreGetUserPurchaseIdResult](/pt-BR/reference/system/xstore/functions/xstoregetuserpurchaseidresult)


## Related topics

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