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

# XStoreQueryLicenseTokenResultSize

> XStoreQueryLicenseTokenResultSize

# XStoreQueryLicenseTokenResultSize

[XstoreQueryLicenseTokenResult](/reference/system/xstore/functions/xstorequerylicensetokenresult) から返される結果のサイズを取得します。

## 構文

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

### パラメーター

*async*   \_In\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XStoreQueryLicenseTokenAsync](/reference/system/xstore/functions/xstorequerylicensetokenasync) に渡された XAsyncBlock ブロック。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) は、呼び出しの状態のポーリングと呼び出し結果の取得に使用できます。詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

*size*   \_Out\_\
Type: size\_t\*

成功時に、[XStoreQueryLicenseTokenResult](/reference/system/xstore/functions/xstorequerylicensetokenresult) から返される結果のサイズが格納されます。

### 戻り値

Type: HRESULT

HRESULT の成功またはエラー コード。

## 解説

この結果関数を使用すると、[XStoreQueryLicenseTokenAsync](/reference/system/xstore/functions/xstorequerylicensetokenasync) が呼び出されたときの JSON Web トークンのサイズを取得できます。したがって、この関数は [XStoreQueryLicenseTokenAsync](/reference/system/xstore/functions/xstorequerylicensetokenasync) の呼び出し後、通常はコールバック関数のコンテキストで呼び出す必要があります。使用例については、[XStoreQueryLicenseTokenAsync](/reference/system/xstore/functions/xstorequerylicensetokenasync) を参照してください。

## 要件

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One 本体および XBOX Series 本体

## 関連項目

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryLicenseTokenAsync](/reference/system/xstore/functions/xstorequerylicensetokenasync)\
[XStoreQueryLicenseTokenResult](/reference/system/xstore/functions/xstorequerylicensetokenresult)


## Related topics

- [XStoreQueryLicenseTokenResult](/ja-jp/reference/system/xstore/functions/xstorequerylicensetokenresult.md)
- [XStoreQueryLicenseTokenAsync](/ja-jp/reference/system/xstore/functions/xstorequerylicensetokenasync.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryAddOnLicensesResult](/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md)
