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

# XStoreQueryGameLicenseResult

> XStoreQueryGameLicenseResult

# XStoreQueryGameLicenseResult

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

## Sintaxe

```cpp theme={null}
HRESULT XStoreQueryGameLicenseResult(  
         XAsyncBlock* async,  
         XStoreGameLicense* license  
)  
```

### Parâmetros

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

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

*license*   \_Out\_\
Tipo: [XStoreGameLicense\*](/pt-BR/reference/system/xstore/structs/xstoregamelicense)

Em caso de sucesso, contém a licença do jogo.

### Valor retornado

Tipo: HRESULT

Código de sucesso ou erro HRESULT.

## Comentários

Esta função de resultado permite que você recupere os resultados da execução de [XStoreQueryGameLicenseAsync](/pt-BR/reference/system/xstore/functions/xstorequerygamelicenseasync), bem como a licença para inicialização do jogo solicitada, se a execução tiver sido bem-sucedida. Assim, esta função deve ser chamada depois que [XStoreQueryGameLicenseAsync](/pt-BR/reference/system/xstore/functions/xstorequerygamelicenseasync) tiver sido chamada, geralmente no contexto de uma função de retorno de chamada.

Consulte [XStoreQueryGameLicenseAsync](/pt-BR/reference/system/xstore/functions/xstorequerygamelicenseasync) 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)\
[XStoreQueryGameLicenseAsync](/pt-BR/reference/system/xstore/functions/xstorequerygamelicenseasync)


## Related topics

- [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
- [XStoreGameLicense](/reference/system/xstore/structs/xstoregamelicense.md)
- [XStoreQueryGameLicenseAsync](/reference/system/xstore/functions/xstorequerygamelicenseasync.md)
