XGameSaveCreateContainer
Creates a XGameSaveContainer handle.Syntax
Parameters
provider _In_Type: XGameSaveProviderHandle Handle to the XGameSaveProvider which will create the container. containerName _In_z_
Type: char* Name of the container to be created. Valid characters for the path portion of the container name (up to and including the final forward slash) includes uppercase letters (A-Z), lowercase letters (a-z), numbers (0-9), underscore (_), and forward slash (/). The path portion may be empty. Valid characters for the file name portion (everything after the final forward slash) include uppercase letters (A-Z), lowercase letters (a-z), numbers (0-9), underscore (_), period (.), and hyphen (-). The file name may not be empty, end in a period or contain two consecutive periods. The maximum length for the container name is 256 characters. containerContext _Outptr_result_nullonfailure_
Type: XGameSaveContainerHandle* Handle to the XGameSaveContainer to be returned by this function call.
Return value
Type: HRESULT Function result. If the containerName is invalid, the function will return E_GS_INVALID_CONTAINER_NAME (0x80830001).Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
The XGameSave API requires your title to have its title ID and service configuration ID (SCID)
A container is not finalized until either XGameSaveSubmitUpdate or XGameSaveSubmitUpdateAsync has been called for the container. Until the update API has been called, the container will not ship in the results of XGameSaveEnumerateContainerInfoByName.
Requirements
Header: XGameSave.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XGameSaveXGameSaveContainerInfo
XGameSaveBlob
Debugging Game Saves
