> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblPresenceGetPresenceAsync

> XblPresenceGetPresenceAsync

# XblPresenceGetPresenceAsync

取得特定 XBOX 使用者識別碼的線上狀態資訊。

## 語法

```cpp theme={null}
HRESULT XblPresenceGetPresenceAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t xuid,  
         XAsyncBlock* async  
)  
```

### 參數

*xblContextHandle*   \_In\_\
類型：[XblContextHandle](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

本機使用者的 XBOX Live 內容。

*xuid*   \_In\_\
類型：uint64\_t

要取得其線上狀態之使用者的 XBOX 使用者識別碼。

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

此作業的 AsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 需求

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

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

## 另請參閱

[presence\_c](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/presence_c/presence_c_members.md)


## Related topics

- [XblPresenceGetPresenceResult](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceresult.md)
- [presence_c](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/presence_c/presence_c_members.md)
- [取得使用者的線上狀態](https://docs.xbox.com/zh-TW/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [選用服務](https://docs.xbox.com/zh-TW/build/gdk-and-engines/optional-services.md)
- [透過 REST 更新使用者的線上狀態](https://docs.xbox.com/zh-TW/services/xbox-services/community/presence/how-to/live-updating-presence-rest.md)
