XStoreGetUserPurchaseIdResultSize

Gets the size of the result returned by XStoreGetUserPurchaseIdResult.

Syntax

HRESULT XStoreGetUserPurchaseIdResultSize(  
         XAsyncBlock* async,  
         size_t* size  
)  

Parameters

async   _In_
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   _Out_
Type: size_t*

On success returns the size of the result that will be returned by XStoreGetUserPurchaseIdResult.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

This result function allows you to retrieve the size of the purchase ID when XStoreGetUserPurchaseIdResult was called. As such, this function should be called after XStoreGetUserPurchaseIdResult 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
XStoreGetUserPurchaseIdResult