Editar

Compartir vía


PartyManager::GetLocalDevice

Gets the local device.

Syntax

PartyError GetLocalDevice(  
    PartyLocalDevice** localDevice  
)  

Parameters

localDevice   PartyLocalDevice**
library-allocated output

The output local device.

Return value

PartyError

c_partyErrorSuccess if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via GetErrorMessage().

Remarks

The local device represents the physical device on which the title is executing, such as an Xbox One or PC. Once the library is initialized, this method will always succeed in returning a local device. The local device will also appear in the device list of any network to which the local device has connected via ConnectToNetwork().

Requirements

Header: Party.h

See also

PartyManager