> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveInitializeProviderResult

> XGameSaveInitializeProviderResult

Contains the results of a [XGameSaveInitializeProviderAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md) call.

## Syntax

```cpp theme={null}
HRESULT XGameSaveInitializeProviderResult(  
         XAsyncBlock* async,  
         XGameSaveProviderHandle* provider  
)  
```

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)

Asyncblock passed from the [XGameSaveInitializeProviderAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md) 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](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md). This function will be used to get the results of [XGameSaveInitializeProviderAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md) 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

## Conceptual documentation

* [Asynchronous programming design goals and improvements](https://docs.xbox.com/build/core-features/common/async/async-whitepaper.md)

## See also

[XGameSave](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveInitializeProviderAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md)\
[Debugging Game Saves](https://docs.xbox.com/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveInitializeProviderAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeproviderasync.md)
- [Asynchronous programming design goals and improvements](https://docs.xbox.com/build/core-features/common/async/async-whitepaper.md)
- [XGameSave (API contents)](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)
- [XGameSaveInitializeProvider](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesaveinitializeprovider.md)
- [Game Saves walkthroughs and samples](https://docs.xbox.com/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md)
