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

# PFPlatformSpecificServerAwardSteamAchievementGetResult

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

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

## 语法

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

### 参数

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

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t

结果对象的缓冲区大小。

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

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

**`result`**   [PFPlatformSpecificAwardSteamAchievementResult\*\*](/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificawardsteamachievementresult)<br />*library-allocated output*

指向结果对象的指针。

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

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

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用不成功，结果将为 E\_PF\_PRODUCT\_DISABLED\_FOR\_TITLE、E\_PF\_USERIS\_NOT\_VALID 或任何全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“Handling PlayFab Errors”。

## 备注

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

## 要求

**头文件：** PFPlatformSpecific.h

## 另请参阅

[PFPlatformSpecific 成员](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members)


## Related topics

- [PFPlatformSpecificServerAwardSteamAchievementAsync](/zh-CN/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificserverawardsteamachievementasync.md)
- [服务 C API 概览 - PFPlatformSpecific.h](/zh-CN/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificServerAwardSteamAchievementGetResultSize](/zh-CN/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificserverawardsteamachievementgetresultsize.md)
- [PFPlatformSpecificAwardSteamAchievementResult](/zh-CN/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificawardsteamachievementresult.md)
- [PFPlatformSpecificAwardSteamAchievementItem](/zh-CN/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificawardsteamachievementitem.md)
