> ## 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.

# XblPresenceRecordGetDeviceRecords

> XblPresenceRecordGetDeviceRecords

# XblPresenceRecordGetDeviceRecords

Get the device presence records associated with a returned presence record.

## Syntax

```cpp theme={null}
HRESULT XblPresenceRecordGetDeviceRecords(  
         XblPresenceRecordHandle handle,  
         const XblPresenceDeviceRecord** deviceRecords,  
         size_t* deviceRecordsCount  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblPresenceRecordHandle](/reference/live/xsapi-c/presence_c/handles/xblpresencerecordhandle)

Handle for the presence record returned from a GetPresence API.

*deviceRecords*   \_Out\_\
Type: [XblPresenceDeviceRecord\*\*](/reference/live/xsapi-c/presence_c/structs/xblpresencedevicerecord)

Passes back a pointer to an array of device presence records. The memory for the returned pointer array remains valid for the life of the XblPresenceRecordHandle object until it is closed.

*deviceRecordsCount*   \_Out\_\
Type: size\_t\*

Passes back the size of the returned array.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** presence\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[presence\_c](/reference/live/xsapi-c/presence_c/presence_c_members)


## Related topics

- [XblPresenceDeviceRecord](/reference/live/xsapi-c/presence_c/structs/xblpresencedevicerecord.md)
- [Getting a user's Presence](/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [XblPresenceTitleRecord](/reference/live/xsapi-c/presence_c/structs/xblpresencetitlerecord.md)
- [XblSocialManagerPresenceTitleRecord](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencetitlerecord.md)
- [XblPresenceRecordGetXuid](/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetxuid.md)
