XStoreShowGiftingUIResult
Gets the results of a call to XStoreShowGiftingUIAsync.
Syntax
HRESULT XStoreShowGiftingUIResult(
XAsyncBlock* async
)
Parameters
async _Inout_
Type: XAsyncBlock*
The XAsyncBlock that was passed to XStoreShowGiftingUIAsync. The XAsyncBlock can be used to poll for the call's status and retrieve call results. See 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. As such, this function should be called after 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 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