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

Obtém a ID de usuário do XBOX do usuário associado ao contexto.

## Sintaxe

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

### Parâmetros

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

O identificador de contexto do XBOX Live.

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

Retorna a ID de usuário do Xbox.

### Valor retornado

Tipo: HRESULT

Código de retorno HRESULT para esta operação de API.

## Requisitos

**Cabeçalho:** xbox\_live\_context\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Confira também

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


## Related topics

- [XblContextGetXboxUserId](/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextgetxboxuserid.md)
- [XblUserStatisticsGetSingleUserStatisticAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticasync.md)
- [XblProfileGetUserProfileAsync](/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileasync.md)
- [XblUserStatisticsGetSingleUserStatisticsAsync](/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetsingleuserstatisticsasync.md)
- [PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser.md)
