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

# XStoreQueryGameAndDlcPackageUpdatesResultCount

> XStoreQueryGameAndDlcPackageUpdatesResultCount

Gets the number of updates retrieved by [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md).

## Syntax

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

### Parameters

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

The XAsyncBlock passed to [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.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*   \_Out\_\
Type: uint32\_t\*

On success contains the number of updates retrieved.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This result function allows you to retrieve the number of add-on licenses acquired when [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) was called. As such, this function should be called after [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md) has been called, usually in the context of a callback function.

See [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.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)\
[XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.md)\
[XStoreQueryGameAndDlcPackageUpdatesResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresult.md)


## Related topics

- [XStoreQueryGameAndDlcPackageUpdatesResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesresult.md)
- [XStoreQueryGameAndDlcPackageUpdatesAsync](https://docs.xbox.com/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync.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)
- [XStoreQueryPackageUpdatesResult](https://docs.xbox.com/reference/system/xstore/functions/xstorequerypackageupdatesresult.md)
