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

ゲーム ライセンスを表します。

## Syntax

```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  
```

### Members

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

ストア ID。

*isActive*\
型: bool

ライセンスが有効かどうかを示します。

*isTrialOwnedByThisUser*\
型: bool

試用版が XStoreContext に関連付けられたユーザーによって所有されているかどうかを示します。PC の場合、これは Microsoft Store アプリに現在サインインしているユーザーとなります。

*isDiscLicense*\
型: bool

ライセンスがディスク ライセンスかどうかを示します。

*isTrial*\
型: bool

ライセンスが試用ライセンスかどうかを示します。

*trialTimeRemainingInSeconds*\
型: uint32\_t

試用ライセンスの残り時間。

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

試用版の一意の ID。

*expirationDate*\
型: time\_t

ライセンスの有効期限。

## Remarks

ゲーム ライセンスを取得するには、[XStoreQueryGameLicenseAsync](/reference/system/xstore/functions/xstorequerygamelicenseasync) を呼び出します。返されたライセンスは結果関数 [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult) で取得できます。**XStoreGameLicense** は [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult) の出力パラメーターです。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [ゲームでの試用版の実装](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-usage-limited-free-trials)

## See also

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


## Related topics

- [XStoreQueryGameLicenseResult](/ja-jp/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
- [ゲームの体験版の実装](/ja-jp/publishing/xstore-commerce/xstore-trials.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [サービスから XBOX Game Pass サブスクリプションのアクセスを検出する](/ja-jp/publishing/xstore-commerce/xstore-detecting-game-pass.md)
- [XStoreGameLicenseChangedCallback](/ja-jp/reference/system/xstore/functions/xstoregamelicensechangedcallback.md)
