home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 16 / FREEDOS.ZIP / FD_A4PRE.ZIP / SOURCE / MC-SWAP.ZIP / SWAP.H < prev    next >
Text File  |  1995-06-23  |  1KB  |  28 lines

  1. /* Header File for DDS MICRO-C PC86 v. 3.13 */
  2.  
  3. int swap ();
  4. int ems4_installed ();
  5. int xms_installed ();
  6.  
  7. /* The return code from swap() will be one of the following.  Codes other    */
  8. /* than SWAP_OK (0) indicate that an error occurred, and thus the program    */
  9. /* has NOT been swapped, and the new program has NOT been executed.          */
  10.  
  11. #define SWAP_OK         (0)         /* Swapped OK and returned               */
  12. #define SWAP_NO_SHRINK  (1)         /* Could not shrink DOS memory size      */
  13. #define SWAP_NO_SAVE    (2)         /* Could not save program to XMS/EMS/disk*/
  14. #define SWAP_NO_EXEC    (3)         /* Could not execute new program         */
  15.  
  16.  
  17. /* If swap() returns 3, SWAP_NO_EXEC, the byte/char pointed to by the        */
  18. /* parameter exec_return will be one of the following standard DOS error     */
  19. /* codes, as specified in the DOS technical reference manuals.               */
  20.  
  21. #define BAD_FUNC        (0x01)   /* Bad DOS function number--unlikely          */
  22. #define FILE_NOT_FOUND  (0x02)   /* File not found--couldn't find program_name */
  23. #define ACCESS_DENIED   (0x05)   /* Access denied--couldn't open program_name  */
  24. #define NO_MEMORY       (0x08)   /* Insufficient memory to run program_name    */
  25. #define BAD_ENVIRON     (0x0A)   /* Invalid environment segment--unlikely      */
  26. #define BAD_FORMAT      (0x0B)   /* Format invalid--unlikely                   */
  27.  
  28.