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

# XblMatchmakingGetHopperStatisticsAsync

> XblMatchmakingGetHopperStatisticsAsync

# XblMatchmakingGetHopperStatisticsAsync

取得 hopper 的統計資料，例如其中有多少玩家。

## 語法

```cpp theme={null}
HRESULT XblMatchmakingGetHopperStatisticsAsync(  
         XblContextHandle xboxLiveContext,  
         const char* serviceConfigurationId,  
         const char* hopperName,  
         XAsyncBlock* asyncBlock  
)  
```

### 參數

*xboxLiveContext*   \_In\_\
類型：[XblContextHandle](/zh-TW/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

本機使用者的 XBOX Live 內容。

*serviceConfigurationId*   \_In\_\
類型：char\*

遊戲的服務設定識別碼 (SCID)。SCID 區分大小寫，因此請直接從 Partner Center 貼上。

*hopperName*   \_In\_\
類型：char\*

要查詢統計資料之 hopper 的名稱。

*asyncBlock*   \_In\_\
類型：XAsyncBlock\*

此作業的 AsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## REST 呼叫

呼叫 V103 GET /serviceconfigs/{serviceConfigId}/hoppers/{hopperName}/stats

## 需求

**標頭：** matchmaking\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[matchmaking\_c](/zh-TW/reference/live/xsapi-c/matchmaking_c/matchmaking_c_members)


## Related topics

- [XblMatchmakingGetHopperStatisticsAsync](/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggethopperstatisticsasync.md)
- [XblMatchmakingGetHopperStatisticsResult](/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggethopperstatisticsresult.md)
