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

# XblPresenceGetPresenceResult

> XblPresenceGetPresenceResult

# XblPresenceGetPresenceResult

取得 XblPresenceGetPresenceAsync 呼叫的結果。

## 語法

```cpp theme={null}
HRESULT XblPresenceGetPresenceResult(  
         XAsyncBlock* async,  
         XblPresenceRecordHandle* presenceRecordHandle  
)  
```

### 參數

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

此作業的 AsyncBlock。

*presenceRecordHandle*   \_Out\_\
類型：[XblPresenceRecordHandle\*](/zh-TW/reference/live/xsapi-c/presence_c/handles/xblpresencerecordhandle)

傳回的線上狀態記錄控制代碼。不再需要時，必須使用 [XblPresenceRecordCloseHandle](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencerecordclosehandle) 釋放相關聯的線上狀態記錄。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 需求

**標頭：** presence\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[presence\_c](/zh-TW/reference/live/xsapi-c/presence_c/presence_c_members)


## Related topics

- [取得使用者的線上狀態](/zh-TW/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [XblPresenceGetPresenceForMultipleUsersResult](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresult.md)
- [XblPresenceGetPresenceForSocialGroupResult](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceforsocialgroupresult.md)
- [XblPresenceGetPresenceForMultipleUsersResultCount](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresultcount.md)
- [XblPresenceGetPresenceForSocialGroupResultCount](/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceforsocialgroupresultcount.md)
