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

# XblContextGetUser

> XblContextGetUser

# XblContextGetUser

このコンテキストに関連付けられている XblContextHandle を取得します。

## 構文

```cpp theme={null}
HRESULT XblContextGetUser(  
         XblContextHandle context,  
         XblUserHandle* user  
)  
```

### パラメーター

*context*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX Live コンテキスト ハンドル。

*user*   \_Out\_\
型: XblUserHandle\*

XBOX Live ユーザー ハンドルを返します。XSAPI はハンドルを返す前に XalUserDuplicateHandle を呼び出すため、呼び出し元は後で XalUserCloseHandle を呼び出す責任があります。

### 戻り値

型: HRESULT

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

## 要件

**ヘッダー:** xbox\_live\_context\_c.h

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

## 関連項目

[xbox\_live\_context\_c](/reference/live/xsapi-c/xbox_live_context_c/xbox_live_context_c_members)


## Related topics

- [XblContextGetXboxUserId](/ja-jp/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextgetxboxuserid.md)
- [PartyXblChatUser::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyXblChatUser::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_setcustomcontext.md)
- [XblProfileGetUserProfileAsync](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [XblProfileGetUserProfilesAsync](/ja-jp/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesasync.md)
