Skip to main content

XGameStreamingGetServerLocationName

Gets the name of the location of the streaming server’s data center.

Syntax

Parameters

serverLocationNameSize   _In_
Type: size_t
The maximum size of the data center location name to return. The serverLocationNameSize should be retrieved by calling XGameStreamingGetServerLocationNameSize. serverLocationName   _Out_writes_z_(serverLocationNameSize)
Type: char*
The name of the Azure Region with the data center hosting the streaming XBOX server.

Return value

Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. Potential Errors For a list of error codes, see Error Codes.

Remarks

Before you call this function, you can call XGameStreamingGetServerLocationNameSize to get the size of the server location name so that you can allocate a buffer. You can utilize the Azure Region if the game wants to connect to a game server that is hosted on Azure PlayFab Multiplayer Servers, and wants a minimium latency with its game server. The error of E_GAMESTREAMING_NO_DATACENTER can occur when a player is using Console Streaming to stream the game from their home XBOX. This error can also occur on an XBOX Developer Kit if you have not set an override value. On an XBOX Developer Kit, you can set the serverLocationName that should be returned during testing, in the Streaming tab of the Developer Home.

Requirements

Header: xgamestreaming.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XGameStreaming
XGameStreamingGetServerLocationNameSize
Last modified on August 20, 2026