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

# PFStatisticsUpdateStatisticsGetResult

> 获取成功的 PFStatisticsUpdateStatisticsAsync 调用的结果。

获取成功的 PFStatisticsUpdateStatisticsAsync 调用的结果。

## 语法

```cpp theme={null}
HRESULT PFStatisticsUpdateStatisticsGetResult(  
    XAsyncBlock* async,  
    size_t bufferSize,  
    void* buffer,  
    PFStatisticsUpdateStatisticsResponse** result,  
    size_t* bufferUsed  
)  
```

### 参数

**`async`**   XAsyncBlock\*<br />*Inout*

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t

结果对象的缓冲区大小。

**`buffer`**   void\*<br />\**Out\_writes\_bytes\_to*(bufferSize,*bufferUsed)*

用于结果值及其字段的字节缓冲区。

**`result`**   [PFStatisticsUpdateStatisticsResponse\*\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticsresponse)<br />*library-allocated output*

指向结果对象的指针。

**`bufferUsed`**   size\_t\*<br />*optional output*

所提供的缓冲区中已使用的字节数。

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用不成功，结果将为 E\_PF\_API\_NOT\_ENABLED\_FOR\_GAME\_CLIENT\_ACCESS、E\_PF\_ENTITY\_TYPE\_MISMATCH\_WITH\_STAT\_DEFINITION、E\_PF\_INVALID\_ENTITY\_TYPE、E\_PF\_INVALID\_EXTERNAL\_ENTITY\_ID、E\_PF\_INVALID\_STATISTIC\_SCORE、E\_PF\_METADATA\_LENGTH\_EXCEEDED、E\_PF\_NOT\_AUTHORIZED、E\_PF\_STATISTIC\_COLUMN\_LENGTH\_MISMATCH、E\_PF\_STATISTIC\_NOT\_FOUND、E\_PF\_TRANSACTION\_ALREADY\_APPLIED、E\_PF\_UPDATING\_STATISTICS\_USING\_TRANSACTION\_ID\_NOT\_AVAILABLE\_FOR\_FREE\_TIER 或任何全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“Handling PlayFab Errors”。

## 备注

result 是 buffer 中的指针，无需单独释放。

## 要求

**头文件：** PFStatistics.h

## 另请参阅

[PFStatistics 成员](/services/playfab/api-references/c/pfstatistics/pfstatistics_members)


## Related topics

- [PFStatisticsUpdateStatisticsAsync](/zh-CN/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
- [服务 C API 概览 - PFStatistics.h](/zh-CN/services/playfab/api-references/c/pfstatistics/pfstatistics_members.md)
- [PFStatisticsUpdateStatisticsGetResultSize](/zh-CN/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsgetresultsize.md)
- [PFStatisticsIncrementStatisticVersionGetResult](/zh-CN/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsincrementstatisticversiongetresult.md)
- [PFStatisticsGetStatisticsGetResult](/zh-CN/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsgetstatisticsgetresult.md)
