home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adapm_15.zip / dos.ads < prev    next >
Text File  |  1994-04-05  |  4KB  |  72 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                               PM Bindings                                --
  4. --                                                                          --
  5. --                                DOS Spec                                  --
  6. --                                                                          --
  7. --                    Binding to the OS/2 DOS API routines                  -- 
  8. --                                                                          --
  9. --                            $Revision: .1 $                               --
  10. --                                                                          --
  11. --     Copyright (c) 1994 Dimensional Media Systems, All Rights Reserved    --
  12. --                                                                          --
  13. --   The PM bindings are free software; you can redistribute them and/or    --
  14. --   modify them under terms of the GNU General Public License as published --
  15. --   by the Free Software Foundation; either version 2, or (at your         --
  16. --   option) any later version.  The PM bindings are distributed in the     --
  17. --   hope that they will be useful, but WITH OUT ANY WARRANTY; without even --
  18. --   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR    --
  19. --   PURPOSE.  See the GNU General Public License for more details.  You    --
  20. --   should have received a copy of the GNU General Public License          --
  21. --   distributed with The PM bindings; see file COPYING.  If not, write to  --
  22. --   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25. --                                                                          --
  26. --   For more information about these PM bindings and their usage with GNAT --
  27. --   you can contact Bill Yow at                                            --
  28. --                                                                          --  
  29. --      Dimensional Media Systems (DMS)                                     --
  30. --      1522 Festival Dr.                                                   --
  31. --      Houston TX, 77062                                                   --
  32. --      Phone - (713) 488-7050                                              --
  33. --      Email - Byow@mci.com                                                --
  34. --                                                                          --
  35. ------------------------------------------------------------------------------
  36.  
  37. with Pm_Types;
  38.  
  39. package Dos is
  40.  
  41.   
  42.   type Result_Codes_Type is
  43.     record
  44.       Dos_Terminate : Pm_Types.U_Long;
  45.       Result        : Pm_Types.U_Long;
  46.     end record;
  47.  
  48.  
  49.   type Object_Buffer_Type is array (Pm_Types.U_Short range <>) of Pm_Types.Byte;
  50.  
  51.   type Exec_Flag_Type is (
  52.       Exec_Sync,
  53.       Exec_Async,
  54.       Exec_Async_Result,
  55.       Exec_Trace,
  56.       Exec_Background,
  57.       Exec_Load,
  58.       Exec_Async_Result_DB);
  59.  
  60.   
  61.   type Api_Return_Code is new PM_Types.U_Long;
  62.  
  63.   function Exec_Program (
  64.              Object_Buffer : Object_Buffer_Type;
  65.              Exec_Flag     : Exec_Flag_Type;
  66.              Arguments     : String;
  67.              Enviorment    : String;
  68.              Return_Codes  : Result_Codes_Type;
  69.              Program       : String) return Api_Return_Code;
  70.  
  71.   end Dos;
  72.