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

# XGameStreamingGetClientCount

> XGameStreamingGetClientCount

# XGameStreamingGetClientCount

現在ゲームをストリーミングしているクライアントの数を取得します。

## Syntax

```cpp theme={null}
uint32_t XGameStreamingGetClientCount()
```

### Parameters

なし

### Return value

型: uint32\_t

現在ゲームをストリーミングしているクライアントの数を返します。

## Remarks

現在ゲームをストリーミングしているクライアントの数を返します。ストリーミング中のクライアントがない場合、この値は 0 になります。

[XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients) を呼び出すためにメモリを割り当てる前に、接続されているデバイスの数を取得するために使用します。

いずれかのデバイスが接続されストリーミング中であるかどうかだけを確認したい場合は、[XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming) の使用を検討してください。

ストリーミング クライアントの接続や切断時に通知を受け取りたい場合は、[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged) の使用を検討してください。

## Requirements

**ヘッダー:** xgamestreaming.h\
**ライブラリ:** xgameruntime.lib\
**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)\
[XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingGetClients](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingGetConnectionState](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreaming](/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingClientPropertiesChangedCallback](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
