How to get expiration date for a trial license for an app published in the Windows 10 Store using Windows.Services.Store namespace?

雨燕双飞 提交于 2019-12-02 06:39:20

问题


I have a converted Win32 app that is posted in the Windows 10 Store under a trial license. I am using a C++/WRT version of this code to retrieve app license info, but for some reason the ExpirationDate member of IStoreAppLicense is always returned as 9999-12-31 00:00:00.

Any idea why?

Here's the full JSON that I'm getting from the Store for my app:

{
  "productAddOns":[],
  "productId":"edited-out",
  "skuId":"0011",
  "isActive":true,
  "isTrial":true,
  "isTrialOwnedByThisUser":false,
  "expiration":"9999-12-31 00:00:00"
}

来源:https://stackoverflow.com/questions/40201201/how-to-get-expiration-date-for-a-trial-license-for-an-app-published-in-the-windo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!