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

# XblContextGetXboxUserId

> XblContextGetXboxUserId

# XblContextGetXboxUserId

コンテキストに関連付けられているユーザーの XBOX ユーザー ID を取得します。

## 構文

```cpp theme={null}
HRESULT XblContextGetXboxUserId(  
         XblContextHandle context,  
         uint64_t* xboxUserId  
)  
```

### パラメーター

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

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

*xboxUserId*   \_Out\_\
型: uint64\_t\*

XBOX ユーザー ID を返します。

### 戻り値

型: 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

- [XblContextGetUser](/ja-jp/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextgetuser.md)
- [PartyXblChatUser::GetXboxUserId](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getxboxuserid.md)
- [PartyXblChatUser::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyXblManager::GetEntityIdsFromXboxLiveUserIds](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getentityidsfromxboxliveuserids.md)
- [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](/ja-jp/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md)
