home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mod201j.zip / modula2.exe / os2api / splerror.def < prev    next >
Text File  |  1994-07-05  |  9KB  |  163 lines

  1. DEFINITION MODULE SPLERRORS;
  2.  
  3. (************************************************************************
  4.   OS/2 2.x interface for Spooler error codes.
  5.  
  6.   Copyright (c) 1992, 1994 by Juergen Neuhoff
  7. *************************************************************************)
  8.  
  9. (*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
  10.  
  11. FROM OS2DEF IMPORT SPLERR_BASE;
  12.  
  13. CONST
  14.   PMERR_SPL_DRIVER_ERROR             = 4001H;
  15.   PMERR_SPL_DEVICE_ERROR             = 4002H;
  16.   PMERR_SPL_DEVICE_NOT_INSTALLED     = 4003H;
  17.   PMERR_SPL_QUEUE_ERROR              = 4004H;
  18.   PMERR_SPL_INV_HSPL                 = 4005H;
  19.   PMERR_SPL_NO_DISK_SPACE            = 4006H;
  20.   PMERR_SPL_NO_MEMORY                = 4007H;
  21.   PMERR_SPL_PRINT_ABORT              = 4008H;
  22.   PMERR_SPL_SPOOLER_NOT_INSTALLED    = 4009H;
  23.   PMERR_SPL_INV_FORMS_CODE           = 400AH;
  24.   PMERR_SPL_INV_PRIORITY             = 400BH;
  25.   PMERR_SPL_NO_FREE_JOB_ID           = 400CH;
  26.   PMERR_SPL_NO_DATA                  = 400DH;
  27.   PMERR_SPL_INV_TOKEN                = 400EH;
  28.   PMERR_SPL_INV_DATATYPE             = 400FH;
  29.   PMERR_SPL_PROCESSOR_ERROR          = 4010H;
  30.   PMERR_SPL_INV_JOB_ID               = 4011H;
  31.   PMERR_SPL_JOB_NOT_PRINTING         = 4012H;
  32.   PMERR_SPL_JOB_PRINTING             = 4013H;
  33.   PMERR_SPL_QUEUE_ALREADY_EXISTS     = 4014H;
  34.   PMERR_SPL_INV_QUEUE_NAME           = 4015H;
  35.   PMERR_SPL_QUEUE_NOT_EMPTY          = 4016H;
  36.   PMERR_SPL_DEVICE_ALREADY_EXISTS    = 4017H;
  37.   PMERR_SPL_DEVICE_LIMIT_REACHED     = 4018H;
  38.   PMERR_SPL_STATUS_STRING_TRUNC      = 4019H;
  39.   PMERR_SPL_INV_LENGTH_OR_COUNT      = 401AH;
  40.   PMERR_SPL_FILE_NOT_FOUND           = 401BH;
  41.   PMERR_SPL_CANNOT_OPEN_FILE         = 401CH;
  42.   PMERR_SPL_DRIVER_NOT_INSTALLED     = 401DH;
  43.   PMERR_SPL_INV_PROCESSOR_DATTYPE    = 401EH;
  44.   PMERR_SPL_INV_DRIVER_DATATYPE      = 401FH;
  45.   PMERR_SPL_PROCESSOR_NOT_INST       = 4020H;
  46.   PMERR_SPL_NO_SUCH_LOG_ADDRESS      = 4021H;
  47.   PMERR_SPL_PRINTER_NOT_FOUND        = 4022H;
  48.   PMERR_SPL_DD_NOT_FOUND             = 4023H;
  49.   PMERR_SPL_QUEUE_NOT_FOUND          = 4024H;
  50.   PMERR_SPL_MANY_QUEUES_ASSOC        = 4025H;
  51.   PMERR_SPL_NO_QUEUES_ASSOCIATED     = 4026H;
  52.   PMERR_SPL_INI_FILE_ERROR           = 4027H;
  53.   PMERR_SPL_NO_DEFAULT_QUEUE         = 4028H;
  54.   PMERR_SPL_NO_CURRENT_FORMS_CODE    = 4029H;
  55.   PMERR_SPL_NOT_AUTHORISED           = 402AH;
  56.   PMERR_SPL_TEMP_NETWORK_ERROR       = 402BH;
  57.   PMERR_SPL_HARD_NETWORK_ERROR       = 402CH;
  58.   PMERR_DEL_NOT_ALLOWED              = 402DH;
  59.   PMERR_CANNOT_DEL_QP_REF            = 402EH;
  60.   PMERR_CANNOT_DEL_QNAME_REF         = 402FH;
  61.   PMERR_CANNOT_DEL_PRINTER_DD_REF    = 4030H;
  62.   PMERR_CANNOT_DEL_PRN_NAME_REF      = 4031H;
  63.   PMERR_CANNOT_DEL_PRN_ADDR_REF      = 4032H;
  64.   PMERR_SPOOLER_QP_NOT_DEFINED       = 4033H;
  65.   PMERR_PRN_NAME_NOT_DEFINED         = 4034H;
  66.   PMERR_PRN_ADDR_NOT_DEFINED         = 4035H;
  67.   PMERR_PRINTER_DD_NOT_DEFINED       = 4036H;
  68.   PMERR_PRINTER_QUEUE_NOT_DEFINED    = 4037H;
  69.   PMERR_PRN_ADDR_IN_USE              = 4038H;
  70.   PMERR_SPL_TOO_MANY_OPEN_FILES      = 4039H;
  71.   PMERR_SPL_CP_NOT_REQD              = 403AH;
  72.   PMERR_UNABLE_TO_CLOSE_DEVICE       = 4040H;
  73.  
  74. CONST
  75.   PMERR_SPL_ERROR_1                  = SPLERR_BASE + 4001;
  76.   PMERR_SPL_ERROR_2                  = SPLERR_BASE + 4002;
  77.   PMERR_SPL_ERROR_3                  = SPLERR_BASE + 4003;
  78.   PMERR_SPL_ERROR_4                  = SPLERR_BASE + 4004;
  79.   PMERR_SPL_ERROR_5                  = SPLERR_BASE + 4005;
  80.   PMERR_SPL_ERROR_6                  = SPLERR_BASE + 4006;
  81.   PMERR_SPL_ERROR_7                  = SPLERR_BASE + 4007;
  82.   PMERR_SPL_ERROR_8                  = SPLERR_BASE + 4008;
  83.   PMERR_SPL_ERROR_9                  = SPLERR_BASE + 4009;
  84.   PMERR_SPL_ERROR_10                 = SPLERR_BASE + 4010;
  85.   PMERR_SPL_ERROR_11                 = SPLERR_BASE + 4011;
  86.   PMERR_SPL_ERROR_12                 = SPLERR_BASE + 4012;
  87.   PMERR_SPL_ERROR_13                 = SPLERR_BASE + 4013;
  88.   PMERR_SPL_ERROR_14                 = SPLERR_BASE + 4014;
  89.   PMERR_SPL_ERROR_15                 = SPLERR_BASE + 4015;
  90.   PMERR_SPL_ERROR_16                 = SPLERR_BASE + 4016;
  91.   PMERR_SPL_ERROR_17                 = SPLERR_BASE + 4017;
  92.   PMERR_SPL_ERROR_18                 = SPLERR_BASE + 4018;
  93.   PMERR_SPL_ERROR_19                 = SPLERR_BASE + 4019;
  94.   PMERR_SPL_ERROR_20                 = SPLERR_BASE + 4020;
  95.   PMERR_SPL_ERROR_21                 = SPLERR_BASE + 4021;
  96.   PMERR_SPL_ERROR_22                 = SPLERR_BASE + 4022;
  97.   PMERR_SPL_ERROR_23                 = SPLERR_BASE + 4023;
  98.   PMERR_SPL_ERROR_24                 = SPLERR_BASE + 4024;
  99.   PMERR_SPL_ERROR_25                 = SPLERR_BASE + 4025;
  100.   PMERR_SPL_ERROR_26                 = SPLERR_BASE + 4026;
  101.   PMERR_SPL_ERROR_27                 = SPLERR_BASE + 4027;
  102.   PMERR_SPL_ERROR_28                 = SPLERR_BASE + 4028;
  103.   PMERR_SPL_ERROR_29                 = SPLERR_BASE + 4029;
  104.   PMERR_SPL_ERROR_30                 = SPLERR_BASE + 4030;
  105.   PMERR_SPL_ERROR_31                 = SPLERR_BASE + 4031;
  106.   PMERR_SPL_ERROR_32                 = SPLERR_BASE + 4032;
  107.   PMERR_SPL_ERROR_33                 = SPLERR_BASE + 4033;
  108.   PMERR_SPL_ERROR_34                 = SPLERR_BASE + 4034;
  109.   PMERR_SPL_ERROR_35                 = SPLERR_BASE + 4035;
  110.   PMERR_SPL_ERROR_36                 = SPLERR_BASE + 4036;
  111.   PMERR_SPL_ERROR_37                 = SPLERR_BASE + 4037;
  112.   PMERR_SPL_ERROR_38                 = SPLERR_BASE + 4038;
  113.   PMERR_SPL_ERROR_39                 = SPLERR_BASE + 4039;
  114.   PMERR_SPL_ERROR_40                 = SPLERR_BASE + 4040;
  115.   PMERR_SPLMSGBOX_INFO_CAPTION       = SPLERR_BASE + 4041;
  116.   PMERR_SPLMSGBOX_WARNING_CAPTION    = SPLERR_BASE + 4042;
  117.   PMERR_SPLMSGBOX_ERROR_CAPTION      = SPLERR_BASE + 4043;
  118.   PMERR_SPLMSGBOX_SEVERE_CAPTION     = SPLERR_BASE + 4044;
  119.   PMERR_SPLMSGBOX_JOB_DETAILS        = SPLERR_BASE + 4045;
  120.   PMERR_SPLMSGBOX_ERROR_ACTION       = SPLERR_BASE + 4046;
  121.   PMERR_SPLMSGBOX_SEVERE_ACTION      = SPLERR_BASE + 4047;
  122.   PMERR_SPLMSGBOX_BIT_0_TEXT         = SPLERR_BASE + 4048;
  123.   PMERR_SPLMSGBOX_BIT_1_TEXT         = SPLERR_BASE + 4049;
  124.   PMERR_SPLMSGBOX_BIT_2_TEXT         = SPLERR_BASE + 4050;
  125.   PMERR_SPLMSGBOX_BIT_3_TEXT         = SPLERR_BASE + 4051;
  126.   PMERR_SPLMSGBOX_BIT_4_TEXT         = SPLERR_BASE + 4052;
  127.   PMERR_SPLMSGBOX_BIT_5_TEXT         = SPLERR_BASE + 4053;
  128.   PMERR_SPLMSGBOX_BIT_15_TEXT        = SPLERR_BASE + 4054;
  129.   PMERR_SPL_NOPATHBUFFER             = SPLERR_BASE + 4055;
  130.   PMERR_SPL_ALREADY_INITIALISED      = SPLERR_BASE + 4093;
  131.   PMERR_SPL_ERROR                    = SPLERR_BASE + 4095;
  132.  
  133. CONST
  134.   NERR_BASE             = 2100;
  135.   NERR_NetNotStarted    = NERR_BASE+2;   (* The NETWKSTA.SYS workstation driver isn't installed. *)
  136.   NERR_RedirectedPath   = NERR_BASE+17;  (* The operation is invalid on a redirected resource. *)
  137.   NERR_BufTooSmall      = NERR_BASE+23;  (* The API return buffer is too small. *)
  138.   NERR_InvalidAPI       = NERR_BASE+42;  (* The requested API isn't supported on the remote server. *)
  139.   NERR_QNotFound        = NERR_BASE+50;  (* The printer queue does not exist. *)
  140.   NERR_JobNotFound      = NERR_BASE+51;  (* The print job does not exist. *)
  141.   NERR_DestNotFound     = NERR_BASE+52;  (* The printer destination cannot be found. *)
  142.   NERR_DestExists       = NERR_BASE+53;  (* The printer destination already exists. *)
  143.   NERR_QExists          = NERR_BASE+54;  (* The printer queue already exists. *)
  144.   NERR_QNoRoom          = NERR_BASE+55;  (* No more printer queues can be added. *)
  145.   NERR_JobNoRoom        = NERR_BASE+56;  (* No more print jobs can be added.  *)
  146.   NERR_DestNoRoom       = NERR_BASE+57;  (* No more printer destinations can be added. *)
  147.   NERR_DestIdle         = NERR_BASE+58;  (* This printer destination is idle and cannot accept control operations. *)
  148.   NERR_DestInvalidOp    = NERR_BASE+59;  (* This printer destination request contains an invalid control function. *)
  149.   NERR_SpoolerNotLoaded = NERR_BASE+61;  (* The spooler is not running. *)
  150.   NERR_DestInvalidState = NERR_BASE+62;  (* This operation cannot be performed on the print destination in its current state. *)
  151.   NERR_JobInvalidState  = NERR_BASE+64;  (* This operation cannot be performed on the print job in its current state. *)
  152.   NERR_SpoolNoMemory    = NERR_BASE+65;  (* A spooler memory allocation failure occurred. *)
  153.   NERR_DriverNotFound   = NERR_BASE+66;  (* The device driver does not exist. *)
  154.   NERR_DataTypeInvalid  = NERR_BASE+67;  (* The datatype is not supported by the processor. *)
  155.   NERR_ProcNotFound     = NERR_BASE+68;  (* The print processor is not installed. *)
  156.   NERR_BadDev           = NERR_BASE+241; (* The requested device is invalid. *)
  157.   NERR_CommDevInUse     = NERR_BASE+243; (* This device is already in use as a communications device. *)
  158.   NERR_InvalidComputer  = NERR_BASE+251; (* This computername is invalid. *)
  159.   NERR_OpenFiles        = NERR_BASE+301; (* There are open files on the connection.    *)
  160.   NERR_LocalDrive       = NERR_BASE+305; (* The drive letter is in use locally. *)
  161.  
  162. END SPLERRORS.
  163.