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

# XblPresenceGetPresenceForMultipleUsersAsync

> XblPresenceGetPresenceForMultipleUsersAsync

# XblPresenceGetPresenceForMultipleUsersAsync

複数のユーザーのプレゼンス情報を取得します。

## 構文

```cpp theme={null}
HRESULT XblPresenceGetPresenceForMultipleUsersAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xuids,  
         size_t xuidsCount,  
         XblPresenceQueryFilters* filters,  
         XAsyncBlock* async  
)  
```

### パラメーター

*xblContextHandle*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

ローカル ユーザーの XBOX Live コンテキスト。

*xuids*   \_In\_\
型: uint64\_t\*

プレゼンスを取得するユーザーの XBOX ユーザー ID。

*xuidsCount*   \_In\_\
型: size\_t

xuids 配列のサイズ。

*filters*   \_In\_opt\_\
型: [XblPresenceQueryFilters\*](/reference/live/xsapi-c/presence_c/structs/xblpresencequeryfilters)

結果をフィルターするためのオプションのフィルター構造体。

*async*   \_In\_\
型: XAsyncBlock\*

この操作の AsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

XblPresenceGetPresenceForMultipleUsersAsync の呼び出し結果を取得するには、[XblPresenceGetPresenceForMultipleUsersResult](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresult) を呼び出します。

XblPresenceGetPresenceForMultipleUsersAsync の呼び出し結果を保持するために必要なバッファー サイズを取得するには、[XblPresenceGetPresenceForMultipleUsersResultCount](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresultcount) を呼び出します。

## 要件

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

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

## 関連項目

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


## Related topics

- [XblPresenceGetPresenceForMultipleUsersResult](/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresult.md)
- [XblPresenceGetPresenceForMultipleUsersResultCount](/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresultcount.md)
- [XblPresenceQueryFilters](/ja-jp/reference/live/xsapi-c/presence_c/structs/xblpresencequeryfilters.md)
- [ユーザーのプレゼンスの取得](/ja-jp/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [オプション サービス](/ja-jp/build/gdk-and-engines/optional-services.md)
