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

# PFProfilesSetProfilePolicyGetResult

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

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

## 语法

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

### 参数

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

用于异步操作的 XAsyncBlock。

**`bufferSize`**   size\_t

结果对象的缓冲区大小。

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

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

**`result`**   [PFProfilesSetEntityProfilePolicyResponse\*\*](/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilessetentityprofilepolicyresponse)<br />*library-allocated output*

指向结果对象的指针。

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

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

### 返回值

类型：HRESULT

此 API 操作的结果代码。如果服务调用失败，结果将是全局 PlayFab 服务错误之一。有关错误处理的详细信息，请参阅文档页面“Handling PlayFab Errors”。

## 备注

result 是 buffer 中的一个指针，不需要单独释放。

## 要求

**头文件：** PFProfiles.h

## 另请参阅

[PFProfiles 成员](/services/playfab/api-references/c/pfprofiles/pfprofiles_members)


## Related topics

- [PFProfilesSetProfilePolicyAsync](/zh-CN/services/playfab/api-references/c/pfprofiles/functions/pfprofilessetprofilepolicyasync.md)
- [Services C API overview - PFProfiles.h](/zh-CN/services/playfab/api-references/c/pfprofiles/pfprofiles_members.md)
- [PFProfilesSetProfilePolicyGetResultSize](/zh-CN/services/playfab/api-references/c/pfprofiles/functions/pfprofilessetprofilepolicygetresultsize.md)
- [PFProfilesSetEntityProfilePolicyResponse](/zh-CN/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilessetentityprofilepolicyresponse.md)
- [PFProfilesSetEntityProfilePolicyRequest](/zh-CN/services/playfab/api-references/c/pfprofilestypes/structs/pfprofilessetentityprofilepolicyrequest.md)
