Partager via


XStoreShowRedeemTokenUIResult

Gets the results of a call to XStoreShowRedeemTokenUIAsync.

Syntax

HRESULT XStoreShowRedeemTokenUIResult(  
         XAsyncBlock* async  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

The XAsyncBlock passed to XStoreShowRedeemTokenUIAsync. 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.

E_ABORT indicates that the user canceled the purchase flow.

Remarks

This result function allows you to retrieve the execution results of XStoreShowRedeemTokenUIAsync. As such, this function should be called after XStoreShowRedeemTokenUIAsync 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 XStoreShowRedeemTokenUIAsync 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
XStoreShowRedeemTokenUIAsync