Skip to main content

XblLocalStorageSetHandlers

Sets the storage handlers.

Syntax

Parameters

queue   _In_opt_
Type: XTaskQueueHandle
The async queue the callbacks should be invoked on. writeHandler   _In_
Type: XblLocalStorageWriteHandler
Handler to be invoked when XSAPI needs to write to local storage. readHandler   _In_
Type: XblLocalStorageReadHandler
Handler to be invoked when XSAPI needs to read from local storage. clearHandler   _In_
Type: XblLocalStorageClearHandler
Handler to be invoked when XSAPI needs to clear local storage. context   _In_opt_
Type: void*
Client context to be passed back to the handlers.

Return value

Type: HRESULT HRESULT return code for this API operation.

Remarks

Must be called before XblInitialize and all three handlers must be set together.

Requirements

Header: platform_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

platform_c
Last modified on August 4, 2026