Freigeben über


XGameStreamingGetServerLocationNameSize

Gets the size of the name of the location of the streaming server's datacenter.

Syntax

size_t XGameStreamingGetServerLocationNameSize()

Parameters

None.

Return value

Type: size_t

The size of the name of the location of the Data Server.

Remarks

Use this function to allocate buffer space for the XGameStreamingGetServerLocationName.

The return value will be zero if the Xbox is not connected to an Azure datacenter.

This can occur if the game is not streaming. It can also happen if the player is using Xbox Console Streaming to stream the game, or stream via an Xbox Developer Kit if no override value has been set.

Requirements

Header: xgamestreaming.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameStreaming
XGameStreamingGetServerLocationName