> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblUserProfile

> XblUserProfile

# XblUserProfile

Représente le profil XBOX Live d'un utilisateur.

## Syntaxe

```cpp theme={null}
typedef struct XblUserProfile {  
    uint64_t xboxUserId;  
    char appDisplayName[XBL_DISPLAY_NAME_CHAR_SIZE];  
    char appDisplayPictureResizeUri[XBL_DISPLAY_PIC_URL_RAW_CHAR_SIZE];  
    char gameDisplayName[XBL_DISPLAY_NAME_CHAR_SIZE];  
    char gameDisplayPictureResizeUri[XBL_DISPLAY_PIC_URL_RAW_CHAR_SIZE];  
    char gamerscore[XBL_GAMERSCORE_CHAR_SIZE];  
    char gamertag[XBL_GAMERTAG_CHAR_SIZE];  
    char modernGamertag[XBL_MODERN_GAMERTAG_CHAR_SIZE];  
    char modernGamertagSuffix[XBL_MODERN_GAMERTAG_SUFFIX_CHAR_SIZE];  
    char uniqueModernGamertag[XBL_UNIQUE_MODERN_GAMERTAG_CHAR_SIZE];  
} XblUserProfile  
```

### Membres

*xboxUserId*\
Type : uint64\_t

ID d'utilisateur XBOX de l'utilisateur.

*appDisplayName*\
Type : char\[XBL\_DISPLAY\_NAME\_CHAR\_SIZE]

Nom d'affichage de l'utilisateur, encodé en UTF-8, à utiliser dans l'interface utilisateur de l'application. Il s'agit toujours du gamertag de l'utilisateur, identique au champ gameDisplayName.

*appDisplayPictureResizeUri*\
Type : char\[XBL\_DISPLAY\_PIC\_URL\_RAW\_CHAR\_SIZE]

URI encodé en UTF-8 de l'image de joueur de l'utilisateur. Il est toujours identique au champ gameDisplayPictureResizeUri. Cet URI est redimensionnable. Il peut servir à spécifier l'une des tailles et l'un des formats suivants en ajoutant '\&format={format}\&w={width}\&h={height} :\
&#x20;Format : png\
&#x20;Largeur Hauteur\
&#x20;64 64\
&#x20;208 208\
&#x20;424 424\


*gameDisplayName*\
Type : char\[XBL\_DISPLAY\_NAME\_CHAR\_SIZE]

Nom d'affichage de l'utilisateur, encodé en UTF-8, à utiliser dans l'interface utilisateur de l'application. Il s'agit toujours du gamertag de l'utilisateur, identique au champ appDisplayName.

*gameDisplayPictureResizeUri*\
Type : char\[XBL\_DISPLAY\_PIC\_URL\_RAW\_CHAR\_SIZE]

URI encodé en UTF-8 de l'image de joueur de l'utilisateur. Il est toujours identique au champ appDisplayPictureResizeUri. Cet URI est redimensionnable. Il peut servir à spécifier l'une des tailles et l'un des formats suivants en ajoutant '\&format={format}\&w={width}\&h={height} :\
&#x20;Format : png\
&#x20;Largeur Hauteur\
&#x20;64 64\
&#x20;208 208\
&#x20;424 424\


*gamerscore*\
Type : char\[XBL\_GAMERSCORE\_CHAR\_SIZE]

Gamerscore de l'utilisateur, encodé en UTF-8.

*gamertag*\
Type : char\[XBL\_GAMERTAG\_CHAR\_SIZE]

Gamertag classique de l'utilisateur, encodé en UTF-8. Ce champ utilise uniquement des caractères ASCII et n'inclut pas de suffixe.

*modernGamertag*\
Type : char\[XBL\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Gamertag moderne de l'utilisateur, encodé en UTF-8. Ce champ utilise des plages précises de caractères UTF-8 et n'inclut pas de suffixe. Son unicité n'est pas garantie.

*modernGamertagSuffix*\
Type : char\[XBL\_MODERN\_GAMERTAG\_SUFFIX\_CHAR\_SIZE]

Suffixe numérique encodé en UTF-8 ajouté au gamertag moderne pour en garantir l'unicité. Peut être vide dans certains cas.

*uniqueModernGamertag*\
Type : char\[XBL\_UNIQUE\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Gamertag moderne unique et suffixe numérique, encodés en UTF-8. Le format est « modernGamertag#suffix ». Garanti de ne pas dépasser 16 caractères affichés.

## Argument de

[XblProfileGetUserProfileResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)\
[XblProfileGetUserProfilesResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)\
[XblProfileGetUserProfilesForSocialGroupResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult.md)

## Configuration requise

**En-tête :** profile\_c.h

## Voir aussi

[profile\_c](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/profile_c_members.md)


## Related topics

- [XblProfileGetUserProfileResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofileresult.md)
- [profile_c](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/profile_c_members.md)
- [XblProfileGetUserProfilesResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesresult.md)
- [XblProfileGetUserProfilesForSocialGroupResult](https://docs.xbox.com/fr-CA/reference/live/xsapi-c/profile_c/functions/xblprofilegetuserprofilesforsocialgroupresult.md)
- [Pratiques exemplaires et tests des gamertags modernes](https://docs.xbox.com/fr-CA/services/xbox-services/fundamentals/identity/user-profile/gamertags/live-modern-gamertags-best-practices-and-testing.md)
