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

取得 [XStoreQueryGameLicenseAsync](/zh-TW/reference/system/xstore/functions/xstorequerygamelicenseasync) 呼叫的結果。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

傳遞給 [XStoreQueryGameLicenseAsync](/zh-TW/reference/system/xstore/functions/xstorequerygamelicenseasync) 的 XAsyncBlock。[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

*license*   \_Out\_\
類型：[XStoreGameLicense\*](/zh-TW/reference/system/xstore/structs/xstoregamelicense)

成功時，包含遊戲授權。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreQueryGameLicenseAsync](/zh-TW/reference/system/xstore/functions/xstorequerygamelicenseasync) 的執行結果，以及在執行成功時所要求的遊戲啟動授權。因此，應在呼叫 [XStoreQueryGameLicenseAsync](/zh-TW/reference/system/xstore/functions/xstorequerygamelicenseasync) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。

如需使用範例，請參閱 [XStoreQueryGameLicenseAsync](/zh-TW/reference/system/xstore/functions/xstorequerygamelicenseasync)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreQueryGameLicenseAsync](/zh-TW/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)
- [XStore](/reference/system/xstore/xstore_members.md)
- [User authentication and ownership](/build/steam-porting-guide/features/user-authentication-and-ownership.md)
