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

取得呼叫 [XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync) 的結果。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

傳遞給 [XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync) 的 XAsyncBlock。[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

S\_OK 表示禮物贈送已完成。

E\_ABORT 表示使用者已取消禮物贈送流程。

## 備註

此結果函式可讓您擷取 [XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync) 的執行結果。因此，應該在呼叫 [XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync) 之後呼叫此函式，通常是在回呼函式的內容中呼叫。在失敗的情況下，此函式特別有助於找出未顯示 UI 的原因。

如需使用範例，請參閱 [XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XStore](/zh-TW/reference/system/xstore/xstore_members)\
[XStoreShowGiftingUIAsync](/zh-TW/reference/system/xstore/functions/xstoreshowgiftinguiasync)


## Related topics

- [XStoreShowGiftingUIResult](/reference/system/xstore/functions/xstoreshowgiftinguiresult.md)
- [XStoreShowGiftingUIAsync](/es/reference/system/xstore/functions/xstoreshowgiftinguiasync.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreShowPurchaseUIResult](/reference/system/xstore/functions/xstoreshowpurchaseuiresult.md)
