home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / os2apipm.zip / APIEXAM / DOS.ADS < prev    next >
Text File  |  1995-03-16  |  4KB  |  75 lines

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