> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyManager::GetLocalDevice

> Gets the local device.

Gets the local device.

## Syntax

```cpp theme={null}
PartyError GetLocalDevice(  
    PartyLocalDevice** localDevice  
)  
```

### Parameters

**`localDevice`**   [PartyLocalDevice\*\*](/services/playfab/multiplayer/networking/reference/classes/PartyLocalDevice/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()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_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()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_connecttonetwork).

## Requirements

**Header:** Party.h

## See also

[PartyManager](/services/playfab/multiplayer/networking/reference/classes/PartyManager/partymanager)


## Related topics

- [PartyLocalDevice](/services/playfab/multiplayer/networking/reference/classes/PartyLocalDevice/partylocaldevice.md)
- [PartyManager::GetChatControls](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getchatcontrols.md)
- [PartyManager::GetNetworks](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getnetworks.md)
- [PartyManager::CreateLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createlocaluser.md)
- [PartyManager::CreateLocalUserWithEntityType](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createlocaluserwithentitytype.md)
