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

게임 라이선스를 설명합니다.

## 구문

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

### 멤버

*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

라이선스의 만료 날짜입니다.

## 설명

게임 라이선스를 획득하려면 [XStoreQueryGameLicenseAsync](/reference/system/xstore/functions/xstorequerygamelicenseasync)를 호출합니다. 반환된 라이선스는 해당 결과 함수 [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult)에서 찾을 수 있습니다. **XStoreGameLicense**는 [XStoreQueryGameLicenseResult](/reference/system/xstore/functions/xstorequerygamelicenseresult)의 출력 매개 변수입니다.

## 요구 사항

**헤더:** XStore.h (XGameRuntime.h에 포함됨)

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [게임의 평가판 구현](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-usage-limited-free-trials)

## 참고 항목

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


## Related topics

- [XStoreQueryGameLicenseResult](/ko/reference/system/xstore/functions/xstorequerygamelicenseresult.md)
- [게임에 트라이얼 구현](/ko/publishing/xstore-commerce/xstore-trials.md)
- [XStore](/ko/reference/system/xstore/xstore_members.md)
- [서비스에서 XBOX Game Pass 구독 액세스 감지](/ko/publishing/xstore-commerce/xstore-detecting-game-pass.md)
- [기본 DRM 및 라이선스 검사](/ko/publishing/xstore-commerce/xstore-basic-drm.md)
