XPersistentLocalStorageGetPath
Returns the game-specific path to the persistent local storage (PLS) on the device.Syntax
Parameters
pathSize _In_Type: size_t The number of characters in the buffer provided for the PLS path. To obtain this value, call XPersistentLocalStorageGetPathSize. path _Out_writes_to_(pathSize,pathUsed)
Type: char The PLS path to which your game can write data. pathUsed _Out_opt_
Type: size_t* The number of characters written to the supplied buffer.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes. If the function fails because pathSize is less than the length of the PLS path, the return value is set to E_FAIL for XBOX devices and to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) for PC devices.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Requirements
Header: XPersistentLocalStorage.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XPersistentLocalStorageGetPathSizeXPersistentLocalStorage
How to use the new MicrosoftGame.config file
