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

# XUserGetMaxUsers

> XUserGetMaxUsers

# XUserGetMaxUsers

현재 플랫폼에서 게임 세션이 허용하는 최대 사용자 수를 가져옵니다.

## 구문

```cpp theme={null}
HRESULT XUserGetMaxUsers(  
         uint32_t* maxUsers  
)  
```

### 매개변수

*maxUsers*   \_Out\_\
형식: uint32\_t\*

현재 플랫폼에서 게임 세션이 허용하는 최대 사용자 수를 포함합니다.

### 반환값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다.\
오류 코드 목록은 [Error Codes](/reference/errorcodes)를 참조하십시오.

## 설명

특정 사용자의 사용자 ID를 가져오려면 [XUserGetId](/reference/system/xuser/functions/xusergetid)를 호출합니다.

특정 사용자의 상태를 가져오려면 [XUserGetState](/reference/system/xuser/functions/xusergetstate)를 호출합니다.

특정 사용자의 연령 그룹을 가져오려면 [XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup)을 호출합니다.

멀티플레이어 세션의 최대 사용자 크기를 가져오려면 [XblMultiplayerManagerGameSessionConstants](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionconstants)를 호출합니다.

## 요구 사항

**헤더:** XUser.h

**라이브러리:** xgameruntime.lib

**지원되는 플랫폼:** Windows, Steam Deck, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XUser](/reference/system/xuser/xuser_members)

[XUserGetId](/reference/system/xuser/functions/xusergetid)

[XUserGetState](/reference/system/xuser/functions/xusergetstate)

[XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup)


## Related topics

- [XUser](/ko/reference/system/xuser/xuser_members.md)
- [MicrosoftGame.config Element - MaxUserQuota](/ko/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-maxuserquota.md)
- [XUserGetDefaultAudioEndpointUtf16](/ko/reference/system/xuser/functions/xusergetdefaultaudioendpointutf16.md)
- [XUserGetGamertag](/ko/reference/system/xuser/functions/xusergetgamertag.md)
- [XUserGetId](/ko/reference/system/xuser/functions/xusergetid.md)
