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

# XStoreShowGiftingUIResult

> XStoreShowGiftingUIResult

Gets the results of a call to [XStoreShowGiftingUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowgiftinguiasync.md).

## Syntax

```cpp theme={null}
HRESULT XStoreShowGiftingUIResult(  
         XAsyncBlock* async  
)  
```

### Parameters

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

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

### Return value

Type: HRESULT

HRESULT success or error code.

S\_OK indicates that the gifting was completed.

E\_ABORT indicates that the user canceled the gifting flow.

## Remarks

This result function allows you to retrieve the execution results of [XStoreShowGiftingUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowgiftinguiasync.md). As such, this function should be called after [XStoreShowGiftingUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowgiftinguiasync.md) has been called, usually in the context of a callback function. This function can be particularly useful in figuring out why UI wasn't shown in cases of failure.

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


## Related topics

- [XStoreShowGiftingUIAsync](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowgiftinguiasync.md)
- [XStore (API contents)](https://docs.xbox.com/reference/system/xstore/xstore_members.md)
- [XStoreShowPurchaseUIResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowpurchaseuiresult.md)
- [XStoreShowAssociatedProductsUIResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowassociatedproductsuiresult.md)
- [XStoreShowProductPageUIResult](https://docs.xbox.com/reference/system/xstore/functions/xstoreshowproductpageuiresult.md)
