> ## 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 ユーザー ID のプレゼンス情報を取得します。

## 構文

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

### パラメーター

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

ローカル ユーザーの XBOX Live コンテキスト。

*xuid*   \_In\_\
型: uint64\_t

プレゼンスを取得するユーザーの XBOX ユーザー ID。

*async*   \_In\_\
型: XAsyncBlock\*

この操作の AsyncBlock。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻りコード。

## 要件

**ヘッダー:** presence\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblPresenceGetPresenceResult](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceresult.md)
- [presence_c](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/presence_c/presence_c_members.md)
- [ユーザーのプレゼンスの取得](https://docs.xbox.com/ja-jp/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [オプション サービス](https://docs.xbox.com/ja-jp/build/gdk-and-engines/optional-services.md)
- [XblPresenceGetPresenceForMultipleUsersAsync](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersasync.md)
