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

# XStoreShowGiftingUIResult

> XStoreShowGiftingUIResult

# XStoreShowGiftingUIResult

Gets the results of a call to [XStoreShowGiftingUIAsync](/reference/system/xstore/functions/xstoreshowgiftinguiasync).

## Syntax

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

### Parameters

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

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

### 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](/reference/system/xstore/functions/xstoreshowgiftinguiasync). As such, this function should be called after [XStoreShowGiftingUIAsync](/reference/system/xstore/functions/xstoreshowgiftinguiasync) 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](/reference/system/xstore/functions/xstoreshowgiftinguiasync) 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)\
[XStoreShowGiftingUIAsync](/reference/system/xstore/functions/xstoreshowgiftinguiasync)


## Related topics

- [XStoreShowGiftingUIAsync](/reference/system/xstore/functions/xstoreshowgiftinguiasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreShowPurchaseUIResult](/reference/system/xstore/functions/xstoreshowpurchaseuiresult.md)
- [XStoreShowAssociatedProductsUIResult](/reference/system/xstore/functions/xstoreshowassociatedproductsuiresult.md)
- [XStoreShowRedeemTokenUIResult](/reference/system/xstore/functions/xstoreshowredeemtokenuiresult.md)
