--------------------------------------------------------------------------------
-- <auto-generated>                                                           --
--     This code was generated by a tool.                                     --
--                                                                            --
--     Changes to this file may cause incorrect behavior and will be lost if  --
--     the code is regenerated.                                               --
-- </auto-generated>                                                          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                                                                            --
--    Copyright(c) 2018 Alexander Gamper, All Rights Reserved.                --
--                                                                            --
--    Ada-WinRT                                                               --
--                                                                            --
-- This program is free software: you can redistribute it and / or modify     --
-- it under the terms of the GNU Lesser General Public License as published by--
-- the Free Software Foundation, either version 3 of the License, or          --
-- (at your option) any later version.                                        --
--                                                                            --
-- This program is distributed in the hope that it will be useful,            --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of             --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               --
-- GNU Lesser General Public License for more details.                        --
--                                                                            --
-- You should have received a copy of the GNU Lesser General Public License   --
-- along with this program.If not, see http://www.gnu.org/licenses            --
--                                                                            --
--------------------------------------------------------------------------------
with Windows.Foundation;
with Windows.Foundation.Collections;
limited with Windows.Storage.Streams;
--------------------------------------------------------------------------------
package Windows.ApplicationModel.Store.LicenseManagement is

   pragma preelaborate;
   
   ------------------------------------------------------------------------
   -- Enums
   ------------------------------------------------------------------------
   
   type LicenseRefreshOption is (
      RunningLicenses,
      AllLicenses
   );
   for LicenseRefreshOption use (
      RunningLicenses => 0,
      AllLicenses => 1
   );
   for LicenseRefreshOption'Size use 32;
   
   type LicenseRefreshOption_Ptr is access LicenseRefreshOption;
   
   ------------------------------------------------------------------------
   -- Forward Declaration - Delegates/Events
   ------------------------------------------------------------------------
   
   type AsyncOperationCompletedHandler_ILicenseSatisfactionResult_Interface;
   type AsyncOperationCompletedHandler_ILicenseSatisfactionResult is access all AsyncOperationCompletedHandler_ILicenseSatisfactionResult_Interface'Class;
   type AsyncOperationCompletedHandler_ILicenseSatisfactionResult_Ptr is access all AsyncOperationCompletedHandler_ILicenseSatisfactionResult;
   
   ------------------------------------------------------------------------
   -- Forward Declaration - Interfaces
   ------------------------------------------------------------------------
   
   type IAsyncOperation_ILicenseSatisfactionResult_Interface;
   type IAsyncOperation_ILicenseSatisfactionResult is access all IAsyncOperation_ILicenseSatisfactionResult_Interface'Class;
   type IAsyncOperation_ILicenseSatisfactionResult_Ptr is access all IAsyncOperation_ILicenseSatisfactionResult;
   type ILicenseManagerStatics_Interface;
   type ILicenseManagerStatics is access all ILicenseManagerStatics_Interface'Class;
   type ILicenseManagerStatics_Ptr is access all ILicenseManagerStatics;
   type ILicenseManagerStatics2_Interface;
   type ILicenseManagerStatics2 is access all ILicenseManagerStatics2_Interface'Class;
   type ILicenseManagerStatics2_Ptr is access all ILicenseManagerStatics2;
   type ILicenseSatisfactionInfo_Interface;
   type ILicenseSatisfactionInfo is access all ILicenseSatisfactionInfo_Interface'Class;
   type ILicenseSatisfactionInfo_Ptr is access all ILicenseSatisfactionInfo;
   type ILicenseSatisfactionResult_Interface;
   type ILicenseSatisfactionResult is access all ILicenseSatisfactionResult_Interface'Class;
   type ILicenseSatisfactionResult_Ptr is access all ILicenseSatisfactionResult;
   
   ------------------------------------------------------------------------
   -- Interfaces
   ------------------------------------------------------------------------
   
   ------------------------------------------------------------------------
   
   IID_IAsyncOperation_ILicenseSatisfactionResult : aliased constant Windows.IID := (3091495881, 43512, 22631, (139, 48, 205, 52, 114, 14, 220, 49 ));
   
   type IAsyncOperation_ILicenseSatisfactionResult_Interface is interface and Windows.IInspectable_Interface;
   
   function put_Completed
   (
      This       : access IAsyncOperation_ILicenseSatisfactionResult_Interface
      ; handler : Windows.ApplicationModel.Store.LicenseManagement.AsyncOperationCompletedHandler_ILicenseSatisfactionResult
   )
   return Windows.HRESULT is abstract;
   
   function get_Completed
   (
      This       : access IAsyncOperation_ILicenseSatisfactionResult_Interface
      ; RetVal : access Windows.ApplicationModel.Store.LicenseManagement.AsyncOperationCompletedHandler_ILicenseSatisfactionResult
   )
   return Windows.HRESULT is abstract;
   
   function GetResults
   (
      This       : access IAsyncOperation_ILicenseSatisfactionResult_Interface
      ; RetVal : access Windows.ApplicationModel.Store.LicenseManagement.ILicenseSatisfactionResult
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   
   IID_ILicenseManagerStatics : aliased constant Windows.IID := (3047963360, 55879, 20256, (154, 35, 9, 24, 44, 148, 118, 255 ));
   
   type ILicenseManagerStatics_Interface is interface and Windows.IInspectable_Interface;
   
   function AddLicenseAsync
   (
      This       : access ILicenseManagerStatics_Interface
      ; license : Windows.Storage.Streams.IBuffer
      ; RetVal : access Windows.Foundation.IAsyncAction
   )
   return Windows.HRESULT is abstract;
   
   function GetSatisfactionInfosAsync
   (
      This       : access ILicenseManagerStatics_Interface
      ; contentIds : Windows.Foundation.Collections.IIterable_String
      ; keyIds : Windows.Foundation.Collections.IIterable_String
      ; RetVal : access Windows.ApplicationModel.Store.LicenseManagement.IAsyncOperation_ILicenseSatisfactionResult -- Generic Parameter Type
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   
   IID_ILicenseManagerStatics2 : aliased constant Windows.IID := (2871968891, 8057, 17536, (184, 126, 44, 73, 158, 96, 27, 163 ));
   
   type ILicenseManagerStatics2_Interface is interface and Windows.IInspectable_Interface;
   
   function RefreshLicensesAsync
   (
      This       : access ILicenseManagerStatics2_Interface
      ; refreshOption : Windows.ApplicationModel.Store.LicenseManagement.LicenseRefreshOption
      ; RetVal : access Windows.Foundation.IAsyncAction
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   
   IID_ILicenseSatisfactionInfo : aliased constant Windows.IID := (1019981967, 56113, 18645, (131, 132, 250, 23, 200, 20, 116, 226 ));
   
   type ILicenseSatisfactionInfo_Interface is interface and Windows.IInspectable_Interface;
   
   function get_SatisfiedByDevice
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_SatisfiedByOpenLicense
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_SatisfiedByTrial
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_SatisfiedByPass
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_SatisfiedByInstallMedia
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_SatisfiedBySignedInUser
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   function get_IsSatisfied
   (
      This       : access ILicenseSatisfactionInfo_Interface
      ; RetVal : access Windows.Boolean
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   
   IID_ILicenseSatisfactionResult : aliased constant Windows.IID := (1013403507, 15495, 20193, (130, 1, 244, 40, 53, 155, 211, 175 ));
   
   type ILicenseSatisfactionResult_Interface is interface and Windows.IInspectable_Interface;
   
   function get_LicenseSatisfactionInfos
   (
      This       : access ILicenseSatisfactionResult_Interface
      ; RetVal : access Windows.Address -- Generic Parameter Type
   )
   return Windows.HRESULT is abstract;
   
   function get_ExtendedError
   (
      This       : access ILicenseSatisfactionResult_Interface
      ; RetVal : access Windows.HResult
   )
   return Windows.HRESULT is abstract;
   
   ------------------------------------------------------------------------
   -- Delegates/Events
   ------------------------------------------------------------------------
   
   ------------------------------------------------------------------------
   
   IID_AsyncOperationCompletedHandler_ILicenseSatisfactionResult : aliased constant Windows.IID := (2473493617, 9519, 21305, (137, 195, 148, 40, 65, 32, 134, 202 ));
   
   type AsyncOperationCompletedHandler_ILicenseSatisfactionResult_Interface(Callback : access procedure (asyncInfo : Windows.ApplicationModel.Store.LicenseManagement.IAsyncOperation_ILicenseSatisfactionResult ; asyncStatus : Windows.Foundation.AsyncStatus)) is new Windows.IMulticastDelegate_Interface(IID_AsyncOperationCompletedHandler_ILicenseSatisfactionResult'access) with null record;
   function Invoke
   (
      This       : access AsyncOperationCompletedHandler_ILicenseSatisfactionResult_Interface
      ; asyncInfo : Windows.ApplicationModel.Store.LicenseManagement.IAsyncOperation_ILicenseSatisfactionResult
      ; asyncStatus : Windows.Foundation.AsyncStatus
   )
   return Windows.HRESULT;
   
   ------------------------------------------------------------------------
   -- Classes
   ------------------------------------------------------------------------
   
   subtype LicenseSatisfactionInfo is Windows.ApplicationModel.Store.LicenseManagement.ILicenseSatisfactionInfo;
   subtype LicenseSatisfactionResult is Windows.ApplicationModel.Store.LicenseManagement.ILicenseSatisfactionResult;
   
   ------------------------------------------------------------------------
   -- Static Procedures/functions
   ------------------------------------------------------------------------
   
   function AddLicenseAsync
   (
      license : Windows.Storage.Streams.IBuffer
   )
   return Windows.Foundation.IAsyncAction;
   
   function GetSatisfactionInfosAsync
   (
      contentIds : Windows.Foundation.Collections.IIterable_String
      ; keyIds : Windows.Foundation.Collections.IIterable_String
   )
   return Windows.ApplicationModel.Store.LicenseManagement.IAsyncOperation_ILicenseSatisfactionResult;
   
   function RefreshLicensesAsync
   (
      refreshOption : Windows.ApplicationModel.Store.LicenseManagement.LicenseRefreshOption
   )
   return Windows.Foundation.IAsyncAction;
   
end;
