XUserGetAgeGroup
Returns the age group of a user.
Syntax
HRESULT XUserGetAgeGroup(
XUserHandle user,
XUserAgeGroup* ageGroup
)
Parameters
user _In_
Type: XUserHandle
The user to get the age group of.
ageGroup _Out_
Type: XUserAgeGroup*
Contains the age group of the user.
Return value
Type: HRESULT
HRESULT success or error code.
Return Code | Description |
---|---|
S_OK | The operation succeeded. |
E_GAMEUSER_RESOLVE_USER_ISSUE_REQUIRED | The user must use a UI to resolve the issue. Call XUserResolveIssueWithUiAsync to display the UI to the user. |
Remarks
Retreives the user's XUserAgeGroup. E_GAMEUSER_RESOLVE_USER_ISSUE_REQUIRED indicates there is a problem that the user needs to resolve using system UI before the code can retrieve the property. In that case, XUserResolveIssueWithUiAsync can be used to trigger the system UI needed to resolve the issue.
Requirements
Header: XUser.h
Library: xgameruntime.lib
Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles