Partager via


XStoreGetUserPurchaseIdResult

Gets the result of a call to XStoreGetUserPurchaseIdAsync.

Syntax

HRESULT XStoreGetUserPurchaseIdResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  

Parameters

async   _Inout_
Type: XAsyncBlock*

The XAsyncBlock passed to XStoreGetUserPurchaseIdAsync. The XAsyncBlock can be used to poll for the call's status and retrieve call results. See XAsyncBlock for more information.

size   _In_
Type: size_t

The size of the array passed into result.

result   _Out_writes_z_(size)
Type: char*

On success contains the retrieved purchase ID.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

This result function allows you to retrieve the execution results of XStoreGetUserPurchaseIdAsync, as well as the purchase ID that was called for if the execution was successful. As such, this function should be called after XStoreGetUserPurchaseIdAsync has been called, usually in the context of a callback function.

See XStoreGetUserPurchaseIdAsync 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
XStoreGetUserPurchaseIdAsync
XStoreGetUSerPurchaseIdResultSize