> ## 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.

# XPersistentLocalStoragePromptUserForSpaceResult

> XPersistentLocalStoragePromptUserForSpaceResult

# XPersistentLocalStoragePromptUserForSpaceResult

Returns the result of a call to the function [XPersistentLocalStoragePromptUserForSpaceAsync](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync).

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XPersistentLocalStoragePromptUserForSpaceResult(
         XAsyncBlock* asyncBlock
)
```

<a id="parametersSection" />

### Parameters

*asyncBlock*   \_Inout\_\
Type: XAsyncBlock\d\*

A pointer to an `XAsyncBlock` object, which you can use to monitor the status of the asynchronous call.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns **S\_OK** if the user attempted to free up the requested space; otherwise, returns an error code. For a list of error codes, see [Error Codes](/reference/errorcodes).  Returns **E\_ABORT** if the user chooses not to attempt to free up space.

<a id="remarksSection" />

## Remarks

The result of the async operation is success if the user chose to free up space. There is no guarantee that the user freed the requested number of bytes, only that they took action.

Your game should query free space again using [XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo) when the user retries the operation that resulted in the space request.

The async operation results in `E_ABORT` if the user chooses not to free up space.

Since Persistent Local Storage is not implemented on the PC platform, don't use this function on that platform.

<a id="requirementsSection" />

## Requirements

**Header:** XPersistentLocalStorage.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[XPersistentLocalStorage](/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members)\
[XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo)
