Partager via


XGameSaveInitializeProviderResult

Contains the results of a XGameSaveInitializeProviderAsync call.

Syntax

HRESULT XGameSaveInitializeProviderResult(  
         XAsyncBlock* async,  
         XGameSaveProviderHandle* provider  
)  

Parameters

async   _In_
Type: XAsyncBlock*

Asyncblock passed from the XGameSaveInitializeProviderAsync call.

provider   _Outptr_result_nullonfailure_
Type: XGameSaveProviderHandle*

the gs_provider_handle_t to be assigned.

Return value

Type: HRESULT

Function result.

Remarks

This function is called as a part of the AsyncBlock call function of XGameSaveInitializeProviderAsync. This function will be used to get the results of XGameSaveInitializeProviderAsync and will return the XGameSaveProviderHandle created by the call. Result methods are commonly written in line with the asynchronous call which will call them later, but can also be written as separate functions.

Requirements

Header: XGameSave.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameSave
XGameSaveInitializeProviderAsync
Game save errors