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

# XStoreQueryConsumableBalanceRemainingResult

> XStoreQueryConsumableBalanceRemainingResult

# XStoreQueryConsumableBalanceRemainingResult

Retrieves the results of a call to [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync).

## Syntax

```cpp theme={null}
HRESULT XStoreQueryConsumableBalanceRemainingResult(  
         XAsyncBlock* async,  
         XStoreConsumableResult* consumableResult  
)  
```

### Parameters

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

The XAsyncBlock passed to [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync). The [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) can be used to poll for the call's status and retrieve call results. See [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) for more information.

*consumableResult*   \_Out\_\
Type: [XStoreConsumableResult\*](/reference/system/xstore/structs/xstoreconsumableresult)

On success contains the result of the call to [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync).

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This result function allows you to retrieve the execution results of [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync), as well as the remaining consumable balance called for if the execution was successful. As such, this function should be called after [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync) has been called, usually in the context of a callback function.

See [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync) 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](/reference/system/xstore/xstore_members)\
[XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync)


## Related topics

- [XStoreQueryConsumableBalanceRemainingAsync](/reference/system/xstore/functions/xstorequeryconsumablebalanceremainingasync.md)
- [XStoreConsumableResult](/reference/system/xstore/structs/xstoreconsumableresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [Basic store operations](/publishing/xstore-commerce/xstore-basic-operations.md)
