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

# XblMultiplayerSearchHandleGetMemberCounts

> XblMultiplayerSearchHandleGetMemberCounts

# XblMultiplayerSearchHandleGetMemberCounts

関連付けられたセッションの現在のメンバー数と最大メンバー数を取得します。

## 構文

```cpp theme={null}
HRESULT XblMultiplayerSearchHandleGetMemberCounts(  
         XblMultiplayerSearchHandle handle,  
         size_t* maxMembers,  
         size_t* currentMembers  
)  
```

### パラメーター

*handle*   \_In\_\
型: [XblMultiplayerSearchHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersearchhandle)

検索ハンドル詳細へのハンドル。

*maxMembers*   \_Out\_opt\_\
型: size\_t\*

セッションで許可される最大メンバー数を返します。

*currentMembers*   \_Out\_opt\_\
型: size\_t\*

セッションの現在のメンバー数を返します。

### 戻り値

型: HRESULT

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

## 要件

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

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

## 関連項目

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)
