Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the storage handlers.
Syntax
HRESULT XblLocalStorageSetHandlers(
XTaskQueueHandle queue,
XblLocalStorageWriteHandler writeHandler,
XblLocalStorageReadHandler readHandler,
XblLocalStorageClearHandler clearHandler,
void* context
)
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