> ## 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을 가져옵니다.

## Syntax

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

### Parameters

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

XBOX Live 컨텍스트 핸들입니다.

*user*   \_Out\_\
Type: XblUserHandle\*

XBOX Live 사용자 핸들을 반환합니다. XSAPI는 핸들을 반환하기 전에 XalUserDuplicateHandle을 호출하므로 이후에 XalUserCloseHandle을 호출하는 것은 호출자의 책임입니다.

### Return value

Type: HRESULT

이 API 작업의 HRESULT 반환 코드입니다.

## Requirements

**Header:** xbox\_live\_context\_c.h

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

## See also

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


## Related topics

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