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

# XStoreQueryAddOnLicensesResult

> XStoreQueryAddOnLicensesResult

Retrieves the result of a call to [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md).

## Syntax

```cpp theme={null}
HRESULT XStoreQueryAddOnLicensesResult(  
         XAsyncBlock* async,  
         uint32_t count,  
         XStoreAddonLicense* addOnLicenses  
)  
```

### Parameters

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

The XAsyncBlock passed to [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresult.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.

*count*   \_In\_\
Type: uint32\_t

The number of elements in the array passed into **addOnLicenses**.

*addOnLicenses*   \_Out\_writes\_(count)\
Type: [XStoreAddonLicense\*](https://docs.xbox.com/reference/system/xstore/structs/xstoreaddonlicense.md)

On success this array will contain Durable add-on licenses.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This result function allows you to retrieve the execution results of [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md), as well as the add-on license that was called for if the execution was successful. As such, this function should be called after [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md) has been called, usually in the context of a callback function.

See [XStoreQueryAddonLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesasync.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)\
[XStoreQueryAddonLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md)\
[XStoreQueryAddonLicensesResultCount](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md)


## Related topics

- [XStoreAddonLicense](https://docs.xbox.com/reference/system/xstore/structs/xstoreaddonlicense.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)
- [XStoreQueryAddOnLicensesResultCount](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md)
- [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md)
