--------------------------------------------------------------------------------
-- <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) 2019 Alexander Gamper, All Rights Reserved.                --
--                                                                            --
--    Ada-NetFramework                                                        --
--    Version   : 1.0.0.0                                                     --
--                                                                            --
-- 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 NetFrameworkBase.System.MarshalByRefObject;
limited with NetFrameworkBase.System.TimeSpan;
limited with NetFrameworkBase.Microsoft.Win32.SafeHandles.SafeWaitHandle;
--------------------------------------------------------------------------------
package NetFrameworkBase.System.Threading.WaitHandle is
   
   type Kind is new NetFrameworkBase.System.MarshalByRefObject.Kind with null record;
   type Kind_Ptr is access all Kind;
   type Kind_Array is array(Natural range<>) of Kind_Ptr;
   type Kind_Array_Ptr is access all Kind_Array;
   
      function Handle
      (
         this : in out WaitHandle.Kind
      )
      return NetFrameworkBase.IntPtr;
      
      procedure Handle
      (
         this : in out WaitHandle.Kind;
         value : NetFrameworkBase.IntPtr
      );
      
      function WaitOne
      (
         this : in out WaitHandle.Kind;
         millisecondsTimeout : NetFrameworkBase.Int32; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      function WaitOne
      (
         this : in out WaitHandle.Kind;
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      function WaitOne
      (
         this : in out WaitHandle.Kind
      )
      return NetFrameworkBase.Boolean;
      
      function WaitOne
      (
         this : in out WaitHandle.Kind;
         millisecondsTimeout : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.Boolean;
      
      function WaitOne
      (
         this : in out WaitHandle.Kind;
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAll
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         millisecondsTimeout : NetFrameworkBase.Int32; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAll
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAll
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAll
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         millisecondsTimeout : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAll
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr
      )
      return NetFrameworkBase.Boolean;
      
      function WaitAny
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         millisecondsTimeout : NetFrameworkBase.Int32; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Int32;
      
      function WaitAny
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Int32;
      
      function WaitAny
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr
      )
      return NetFrameworkBase.Int32;
      
      function WaitAny
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array
      )
      return NetFrameworkBase.Int32;
      
      function WaitAny
      (
         waitHandles : NetFrameworkBase.System.Threading.WaitHandle.Kind_Array; 
         millisecondsTimeout : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.Int32;
      
      function SignalAndWait
      (
         toSignal : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr; 
         toWaitOn : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr
      )
      return NetFrameworkBase.Boolean;
      
      function SignalAndWait
      (
         toSignal : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr; 
         toWaitOn : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr; 
         timeout : NetFrameworkBase.System.TimeSpan.Kind_Ptr; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      function SignalAndWait
      (
         toSignal : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr; 
         toWaitOn : NetFrameworkBase.System.Threading.WaitHandle.Kind_Ptr; 
         millisecondsTimeout : NetFrameworkBase.Int32; 
         exitContext : NetFrameworkBase.Boolean
      )
      return NetFrameworkBase.Boolean;
      
      procedure Close
      (
         this : in out WaitHandle.Kind
      );
      
      procedure Dispose
      (
         this : in out WaitHandle.Kind
      );
      
      function SafeWaitHandle
      (
         this : in out WaitHandle.Kind
      )
      return NetFrameworkBase.Microsoft.Win32.SafeHandles.SafeWaitHandle.Kind_Ptr;
      
      procedure SafeWaitHandle
      (
         this : in out WaitHandle.Kind;
         value : NetFrameworkBase.Microsoft.Win32.SafeHandles.SafeWaitHandle.Kind_Ptr
      );
      
end;
