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

# XblProfileGetUserProfileResult

> XblProfileGetUserProfileResult

# XblProfileGetUserProfileResult

获取已完成的 XblProfileGetUserProfileAsync 操作的结果。

## 语法

```cpp theme={null}
HRESULT XblProfileGetUserProfileResult(  
         XAsyncBlock* async,  
         XblUserProfile* profile  
)  
```

### 参数

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

传递给 XblProfileGetUserProfileAsync 的同一个 AsyncBlock。

*profile*   \_Out\_\
类型：[XblUserProfile\*](/reference/live/xsapi-c/profile_c/structs/xbluserprofile)

用于写入结果的、由调用方分配的配置文件对象。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## 要求

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

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

## 另请参阅

[profile\_c](/reference/live/xsapi-c/profile_c/profile_c_members)


## Related topics

- [XblUserProfile](/zh-CN/reference/live/xsapi-c/profile_c/structs/xbluserprofile.md)
- [XblProfileGetUserProfileAsync](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [在 XSAPI C API 中进行异步调用](/zh-CN/services/xbox-services/fundamentals/xbox-services-api/live-flatc-async-patterns.md)
- [XblProfileGetUserProfilesResult](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)
- [XblProfileGetUserProfilesResultCount](/zh-CN/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresultcount.md)
