> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreQueryLicenseTokenResultSize

> XStoreQueryLicenseTokenResultSize

Gets the size of the result that will be returned by [XstoreQueryLicenseTokenResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenresult.md).

## Syntax

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

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)

The XAsyncBlock block passed to [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md). The [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) can be used to poll for the call's status and retrieve call results. See [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) for more information.

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

On success contains the size of the result that will be returned by [XStoreQueryLicenseTokenResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenresult.md).

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This result function allows you to retrieve the size of the JSON web Token when [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md) was called. As such, this function should be called after [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md) has been called, usually in the context of a callback function. See [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md) for a usage example.

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XStore](https://docs.xbox.com/reference/system/xstore/xstore_members.md)\
[XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md)\
[XStoreQueryLicenseTokenResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenresult.md)


## Related topics

- [XStoreQueryLicenseTokenResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenresult.md)
- [XStoreQueryLicenseTokenAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerylicensetokenasync.md)
- [XStore (API contents)](https://docs.xbox.com/reference/system/xstore/xstore_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryGameLicenseResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
