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

# XblMatchmakingGetHopperStatisticsResult

> XblMatchmakingGetHopperStatisticsResult

# XblMatchmakingGetHopperStatisticsResult

获取 XblMatchmakingGetHopperStatisticsAsync 调用的结果。

## 语法

```cpp theme={null}
HRESULT XblMatchmakingGetHopperStatisticsResult(  
         XAsyncBlock* asyncBlock,  
         size_t bufferSize,  
         void* buffer,  
         XblHopperStatisticsResponse** ptrToBuffer,  
         size_t* bufferUsed  
)  
```

### 参数

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

此操作的 AsyncBlock。

*bufferSize*   \_In\_\
类型：size\_t

所提供缓冲区的大小。使用 [XblMatchmakingGetHopperStatisticsResultSize](/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggethopperstatisticsresultsize) 来获取所需的大小。

*buffer*   \_Out\_writes\_bytes\_to\_(bufferSize,*bufferUsed)\
类型：void*

由调用方分配的用于写入结果的字节缓冲区。

*ptrToBuffer*   \_Outptr\_\
类型：[XblHopperStatisticsResponse\*\*](/reference/live/xsapi-c/matchmaking_c/structs/xblhopperstatisticsresponse)

指向 buffer 内部的强类型指针。这是 buffer 中的一个指针，不应单独释放。

*bufferUsed*   \_Out\_opt\_\
类型：size\_t\*

写入缓冲区的字节数。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 要求

**头文件：** matchmaking\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

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


## Related topics

- [XblMatchmakingGetHopperStatisticsResultSize](/zh-CN/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggethopperstatisticsresultsize.md)
- [XblMatchmakingGetHopperStatisticsAsync](/zh-CN/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggethopperstatisticsasync.md)
- [XblUserStatisticsGetMultipleUserStatisticsResult](/zh-CN/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult.md)
- [XblUserStatisticsGetSingleUserStatisticResult](/zh-CN/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticresult.md)
- [XblUserStatisticsGetSingleUserStatisticsResult](/zh-CN/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsresult.md)
