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

返されたプレゼンス レコードに関連付けられているデバイス プレゼンス レコードを取得します。

## 構文

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

### パラメーター

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

GetPresence API から返されたプレゼンス レコードのハンドル。

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

デバイス プレゼンス レコードの配列へのポインターを返します。返されるポインター配列のメモリは、XblPresenceRecordHandle オブジェクトが閉じられるまで、その存続期間中有効です。

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

返される配列のサイズを返します。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 要件

**ヘッダー:** presence\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblPresenceDeviceRecord](/ja-jp/reference/live/xsapi-c/presence_c/structs/xblpresencedevicerecord.md)
- [ユーザーのプレゼンスの取得](/ja-jp/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [XblPresenceTitleRecord](/ja-jp/reference/live/xsapi-c/presence_c/structs/xblpresencetitlerecord.md)
- [XblPresenceRecordGetXuid](/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetxuid.md)
- [XblPresenceRecordGetUserState](/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencerecordgetuserstate.md)
