XStoreGameLicense
Describes a game license.Syntax
Members
skuStoreIdType: char[STORE_SKU_ID_SIZE] The store ID. isActive
Type: bool Indicates whether the license is active. isTrialOwnedByThisUser
Type: bool Indicates whether the trial is owned by the user associated to the XStoreContext. If on PC, this will be the currently signed in user to the Microsoft Store App. isDiscLicense
Type: bool Indicates whether the license is a disc license. isTrial
Type: bool Indicates whether the license is a trial license. trialTimeRemainingInSeconds
Type: uint32_t Amount of time remaining for the trial license. trialUniqueId
Type: char[TRIAL_UNIQUE_ID_MAX_SIZE] The unique ID for the trial. expirationDate
Type: time_t Expiration date of the license.
Remarks
To acquire the game license call XStoreQueryGameLicenseAsync. You will find the license returned in its result function XStoreQueryGameLicenseResult. XStoreGameLicense is an output parameter of XStoreQueryGameLicenseResult.Requirements
Header: XStore.h (included in XGameRuntime.h) Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XStoreXStoreQueryGameLicenseAsync
XStoreQueryGameLicenseResult
