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

# XStoreGameLicense

> XStoreGameLicense

# XStoreGameLicense

Décrit une licence de jeu.

## Syntaxe

```cpp theme={null}
typedef struct XStoreGameLicense {  
    char skuStoreId[STORE_SKU_ID_SIZE];  
    bool isActive;  
    bool isTrialOwnedByThisUser;  
    bool isDiscLicense;  
    bool isTrial;  
    uint32_t trialTimeRemainingInSeconds;  
    char trialUniqueId[TRIAL_UNIQUE_ID_MAX_SIZE];  
    time_t expirationDate;  
} XStoreGameLicense  
```

### Membres

*skuStoreId*\
Type : char\[STORE\_SKU\_ID\_SIZE]

L'ID du Store.

*isActive*\
Type : bool

Indique si la licence est active.

*isTrialOwnedByThisUser*\
Type : bool

Indique si la version d'essai appartient à l'utilisateur associé au XStoreContext. Sur PC, il s'agit de l'utilisateur actuellement connecté à l'application Microsoft Store.

*isDiscLicense*\
Type : bool

Indique si la licence est une licence de disque.

*isTrial*\
Type : bool

Indique si la licence est une licence d'essai.

*trialTimeRemainingInSeconds*\
Type : uint32\_t

Temps restant pour la licence d'essai.

*trialUniqueId*\
Type : char\[TRIAL\_UNIQUE\_ID\_MAX\_SIZE]

L'ID unique de la version d'essai.

*expirationDate*\
Type : time\_t

Date d'expiration de la licence.

## Remarques

Pour obtenir la licence du jeu, appelez [XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync). Vous trouverez la licence retournée dans sa fonction de résultat [XStoreQueryGameLicenseResult](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseresult). **XStoreGameLicense** est un paramètre de sortie de [XStoreQueryGameLicenseResult](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseresult).

## Configuration requise

**En-tête :** XStore.h (inclus dans XGameRuntime.h)

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Documentation conceptuelle

* [Implémenter des versions d'essai pour votre jeu](/fr-CA/publishing/xstore-commerce/xstore-trials)

## Voir aussi

[XStore](/fr-CA/reference/system/xstore/xstore_members)\
[XStoreQueryGameLicenseAsync](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseasync)\
[XStoreQueryGameLicenseResult](/fr-CA/reference/system/xstore/functions/xstorequerygamelicenseresult)


## Related topics

- [XStoreGameLicense](/reference/system/xstore/structs/xstoregamelicense.md)
- [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Implementing Trials for your game](/publishing/xstore-commerce/xstore-trials.md)
- [Basic DRM and license checks](/publishing/xstore-commerce/xstore-basic-drm.md)
