Compartir a través de


XStoreShowPurchaseUIResult

Gets the results of a call to XStoreShowPurchaseUIAsync.

Syntax

HRESULT XStoreShowPurchaseUIResult(  
         XAsyncBlock* async  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

The XAsyncBlock that was passed to XStoreShowPurchaseUIAsync. 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 purchase was completed, but you should always refresh the user's licenses and collections data before granting access to the content

E_ABORT indicates that the user canceled the purchase flow.

Remarks

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