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

# XGameSaveFilesGetFolderWithUiResult

> XGameSaveFilesGetFolderWithUiResult

# XGameSaveFilesGetFolderWithUiResult

Returns a folder that can be used to contain directories and files for storage in the cloud.

## Syntax

```cpp theme={null}
HRESULT XGameSaveFilesGetFolderWithUiResult(
  XAsyncBlock * async,
  size_t folderSize,
  char * folderResult
)
```

### Parameters

`async`\
Type: *In* XAsyncBlock \*

Contains the information for the Async call.

`folderSize`\
Type: *In* size\_t

Size of the folder path, in bytes.

`folderResult`\
Type: *Out\_writes\_bytes*(folderSize) char \*

Folder to contain directories and files for storage in the cloud.

### Return value

Type: HRESULT

Function result.

## Remarks

Titles are expected to create directories and files in the returned folder. Any files that are not in a sub-path (i.e. container) will be ignored as all items are supposed to be within a container to store in the cloud.

## Requirements

**Header:** XGameSaveFiles.h

## Conceptual documentation

* [Implement cloud saves in your game](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-cloud-saves)

## See also

[XGameSaveFiles members](/reference/system/xgamesavefiles/xgamesavefiles_members)\
[XGameSaveFiles Overview](/build/core-features/common/game-save/xgamesavefiles)


## Related topics

- [XGameSaveFiles](/reference/system/xgamesavefiles/xgamesavefiles_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameSaveFilesGetFolderWithUiAsync](/reference/system/xgamesavefiles/functions/xgamesavefilesgetfolderwithuiasync.md)
- [Game Saves debugging](/build/core-features/common/game-save/game-saves-debugging.md)
- [Game Saves walkthroughs and samples](/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md)
