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

# XblLocalStorageReadHandler

> XblLocalStorageReadHandler

# XblLocalStorageReadHandler

Invoked by XSAPI to request the client to perform a local storage read operation.

## Syntax

```cpp theme={null}
void XblLocalStorageReadHandler(  
         void* context,  
         XblClientOperationHandle operation,  
         XblUserHandle user,  
         const char* key  
)  
```

### Parameters

*context*   \_In\_opt\_\
Type: void\*

Optional pointer to data used by the event handler.

*operation*   \_In\_\
Type: [XblClientOperationHandle](/reference/live/xsapi-c/platform_c/handles/xblclientoperationhandle)

The handle for this operation.

*user*   \_In\_\
Type: XblUserHandle

The user for which XSAPI is requesting the read.

*key*   \_In\_z\_\
Type: char\*

Identifies the data being read.

### Return value

Type: void

## Remarks

When the operation is complete, XblLocalStorageReadComplete should be called. Apart from context, all parameters are owned by XSAPI and are guaranteed to be valid until the operation is complete. If the requested key is not found, the client should complete with XblClientOperationResult::Success and no data.

## Requirements

**Header:** platform\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[platform\_c](/reference/live/xsapi-c/platform_c/platform_c_members)


## Related topics

- [XblLocalStorageReadComplete](/reference/live/xsapi-c/platform_c/functions/xbllocalstoragereadcomplete.md)
- [XblLocalStorageSetHandlers](/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [XblLocalStorageClearHandler](/reference/live/xsapi-c/platform_c/functions/xbllocalstorageclearhandler.md)
- [XblLocalStorageWriteHandler](/reference/live/xsapi-c/platform_c/functions/xbllocalstoragewritehandler.md)
- [PFLocalStorageHooks](/services/playfab/api-references/c/pfplatform/structs/pflocalstoragehooks.md)
