DEFINITION MODULE SHLERRORS;

(************************************************************************
  OS/2 2.x interface for Presentation Manager Shell error codes.       

  Copyright (c) 1992, 1994 by Juergen Neuhoff
*************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)

CONST (* Window Manager error codes *)
  PMERR_INVALID_PIB                  = 1101H;
  PMERR_INSUFF_SPACE_TO_ADD          = 1102H;
  PMERR_INVALID_GROUP_HANDLE         = 1103H;
  PMERR_DUPLICATE_TITLE              = 1104H;
  PMERR_INVALID_TITLE                = 1105H;
  PMERR_HANDLE_NOT_IN_GROUP          = 1107H;
  PMERR_INVALID_TARGET_HANDLE        = 1106H;
  PMERR_INVALID_PATH_STATEMENT       = 1108H;
  PMERR_NO_PROGRAM_FOUND             = 1109H;
  PMERR_INVALID_BUFFER_SIZE          = 110AH;
  PMERR_BUFFER_TOO_SMALL             = 110BH;
  PMERR_PL_INITIALISATION_FAIL       = 110CH;
  PMERR_CANT_DESTROY_SYS_GROUP       = 110DH;
  PMERR_INVALID_TYPE_CHANGE          = 110EH;
  PMERR_INVALID_PROGRAM_HANDLE       = 110FH;
  PMERR_NOT_CURRENT_PL_VERSION       = 1110H;
  PMERR_INVALID_CIRCULAR_REF         = 1111H;
  PMERR_MEMORY_ALLOCATION_ERR        = 1112H;
  PMERR_MEMORY_DEALLOCATION_ERR      = 1113H;
  PMERR_TASK_HEADER_TOO_BIG          = 1114H;
  PMERR_INVALID_INI_FILE_HANDLE      = 1115H;
  PMERR_MEMORY_SHARE                 = 1116H;
  PMERR_OPEN_QUEUE                   = 1117H;
  PMERR_CREATE_QUEUE                 = 1118H;
  PMERR_WRITE_QUEUE                  = 1119H;
  PMERR_READ_QUEUE                   = 111AH;
  PMERR_CALL_NOT_EXECUTED            = 111BH;
  PMERR_UNKNOWN_APIPKT               = 111CH;
  PMERR_INITHREAD_EXISTS             = 111DH;
  PMERR_CREATE_THREAD                = 111EH;
  PMERR_NO_HK_PROFILE_INSTALLED      = 111FH;
  PMERR_INVALID_DIRECTORY            = 1120H;
  PMERR_WILDCARD_IN_FILENAME         = 1121H;
  PMERR_FILENAME_BUFFER_FULL         = 1122H;
  PMERR_FILENAME_TOO_LONG            = 1123H;
  PMERR_INI_FILE_IS_SYS_OR_USER      = 1124H;
  PMERR_BROADCAST_PLMSG              = 1125H;
  PMERR_190_INIT_DONE                = 1126H;
  PMERR_HMOD_FOR_PMSHAPI             = 1127H;
  PMERR_SET_HK_PROFILE               = 1128H;
  PMERR_API_NOT_ALLOWED              = 1129H;
  PMERR_INI_STILL_OPEN               = 112AH;
  PMERR_PROGDETAILS_NOT_IN_INI       = 112BH;
  PMERR_PIBSTRUCT_NOT_IN_INI         = 112CH;
  PMERR_INVALID_DISKPROGDETAILS      = 112DH;
  PMERR_PROGDETAILS_READ_FAILURE     = 112EH;
  PMERR_PROGDETAILS_WRITE_FAILURE    = 112FH;
  PMERR_PROGDETAILS_QSIZE_FAILURE    = 1130H;
  PMERR_INVALID_PROGDETAILS          = 1131H;
  PMERR_SHEPROFILEHOOK_NOT_FOUND     = 1132H;
  PMERR_190PLCONVERTED               = 1133H;
  PMERR_FAILED_TO_CONVERT_INI_PL     = 1134H;
  PMERR_PMSHAPI_NOT_INITIALISED      = 1135H;
  PMERR_INVALID_SHELL_API_HOOK_ID    = 1136H;
  PMERR_DOS_ERROR                    = 1200H;
  PMERR_NO_SPACE                     = 1201H;
  PMERR_INVALID_SWITCH_HANDLE        = 1202H;
  PMERR_NO_HANDLE                    = 1203H;
  PMERR_INVALID_PROCESS_ID           = 1204H;
  PMERR_NOT_SHELL                    = 1205H;
  PMERR_INVALID_WINDOW               = 1206H;
  PMERR_INVALID_POST_MSG             = 1207H;
  PMERR_INVALID_PARAMETERS           = 1208H;
  PMERR_INVALID_PROGRAM_TYPE         = 1209H;
  PMERR_NOT_EXTENDED_FOCUS           = 120AH;
  PMERR_INVALID_SESSION_ID           = 120BH;
  PMERR_SMG_INVALID_ICON_FILE        = 120CH;
  PMERR_SMG_ICON_NOT_CREATED         = 120DH;
  PMERR_SHL_DEBUG                    = 120EH;
  PMERR_OPENING_INI_FILE             = 1301H;
  PMERR_INI_FILE_CORRUPT             = 1302H;
  PMERR_INVALID_PARM                 = 1303H;
  PMERR_NOT_IN_IDX                   = 1304H;
  PMERR_NO_ENTRIES_IN_GROUP          = 1305H;
  PMERR_INI_WRITE_FAIL               = 1306H;
  PMERR_IDX_FULL                     = 1307H;
  PMERR_INI_PROTECTED                = 1308H;
  PMERR_MEMORY_ALLOC                 = 1309H;
  PMERR_INI_INIT_ALREADY_DONE        = 130AH;
  PMERR_INVALID_INTEGER              = 130BH;
  PMERR_INVALID_ASCIIZ               = 130CH;
  PMERR_CAN_NOT_CALL_SPOOLER         = 130DH;
  PMERR_VALIDATION_REJECTED          = PMERR_CAN_NOT_CALL_SPOOLER;
  PMERR_WARNING_WINDOW_NOT_KILLED    = 1401H;
  PMERR_ERROR_INVALID_WINDOW         = 1402H;
  PMERR_ALREADY_INITIALIZED          = 1403H;
  PMERR_MSG_PROG_NO_MOU              = 1405H;
  PMERR_MSG_PROG_NON_RECOV           = 1406H;
  PMERR_WINCONV_INVALID_PATH         = 1407H;
  PMERR_PI_NOT_INITIALISED           = 1408H;
  PMERR_PL_NOT_INITIALISED           = 1409H;
  PMERR_NO_TASK_MANAGER              = 140AH;
  PMERR_SAVE_NOT_IN_PROGRESS         = 140BH;
  PMERR_NO_STACK_SPACE               = 140CH;
  PMERR_INVALID_COLR_FIELD           = 140DH;
  PMERR_INVALID_COLR_VALUE           = 140EH;
  PMERR_COLR_WRITE                   = 140FH;
  PMERR_TARGET_FILE_EXISTS           = 1501H;
  PMERR_SOURCE_SAME_AS_TARGET        = 1502H;
  PMERR_SOURCE_FILE_NOT_FOUND        = 1503H;
  PMERR_INVALID_NEW_PATH             = 1504H;
  PMERR_TARGET_FILE_NOT_FOUND        = 1505H;
  PMERR_INVALID_DRIVE_NUMBER         = 1506H;
  PMERR_NAME_TOO_LONG                = 1507H;
  PMERR_NOT_ENOUGH_ROOM_ON_DISK      = 1508H;
  PMERR_NOT_ENOUGH_MEM               = 1509H;
  PMERR_LOG_DRV_DOES_NOT_EXIST       = 150BH;
  PMERR_INVALID_DRIVE                = 150CH;
  PMERR_ACCESS_DENIED                = 150DH;
  PMERR_NO_FIRST_SLASH               = 150EH;
  PMERR_READ_ONLY_FILE               = 150FH;
  PMERR_GROUP_PROTECTED              = 151FH;
  PMERR_INVALID_PROGRAM_CATEGORY     = 152FH;
  PMERR_INVALID_APPL                 = 1530H;
  PMERR_CANNOT_START                 = 1531H;
  PMERR_STARTED_IN_BACKGROUND        = 1532H;
  PMERR_INVALID_HAPP                 = 1533H;
  PMERR_CANNOT_STOP                  = 1534H;


(* Errors generated by Language Bindings layer.    *)
(* (Range 1600H thru 16FFH reserved for Bindings)  *)

CONST (* SEVERITY_UNRECOVERABLE *)
  PMERR_INTERNAL_ERROR_1             = 1601H;
  PMERR_INTERNAL_ERROR_2             = 1602H;
  PMERR_INTERNAL_ERROR_3             = 1603H;
  PMERR_INTERNAL_ERROR_4             = 1604H;
  PMERR_INTERNAL_ERROR_5             = 1605H;
  PMERR_INTERNAL_ERROR_6             = 1606H;
  PMERR_INTERNAL_ERROR_7             = 1607H;
  PMERR_INTERNAL_ERROR_8             = 1608H;
  PMERR_INTERNAL_ERROR_9             = 1609H;
  PMERR_INTERNAL_ERROR_10            = 160AH;
  PMERR_INTERNAL_ERROR_11            = 160BH;
  PMERR_INTERNAL_ERROR_12            = 160CH;
  PMERR_INTERNAL_ERROR_13            = 160DH;
  PMERR_INTERNAL_ERROR_14            = 160EH;
  PMERR_INTERNAL_ERROR_15            = 160FH;
  PMERR_INTERNAL_ERROR_16            = 1610H;
  PMERR_INTERNAL_ERROR_17            = 1611H;
  PMERR_INTERNAL_ERROR_18            = 1612H;
  PMERR_INTERNAL_ERROR_19            = 1613H;
  PMERR_INTERNAL_ERROR_20            = 1614H;
  PMERR_INTERNAL_ERROR_21            = 1615H;
  PMERR_INTERNAL_ERROR_22            = 1616H;
  PMERR_INTERNAL_ERROR_23            = 1617H;
  PMERR_INTERNAL_ERROR_24            = 1618H;
  PMERR_INTERNAL_ERROR_25            = 1619H;
  PMERR_INTERNAL_ERROR_26            = 161AH;
  PMERR_INTERNAL_ERROR_27            = 161BH;
  PMERR_INTERNAL_ERROR_28            = 161CH;
  PMERR_INTERNAL_ERROR_29            = 161DH;

CONST (* SEVERITY_WARNING *)
  PMERR_INVALID_FREE_MESSAGE_ID      = 1630H;

CONST (* SEVERITY_ERROR *)
  PMERR_FUNCTION_NOT_SUPPORTED       = 1641H;
  PMERR_INVALID_ARRAY_COUNT          = 1642H;
  PMERR_INVALID_LENGTH               = 1643H;
  PMERR_INVALID_BUNDLE_TYPE          = 1644H;
  PMERR_INVALID_PARAMETER            = 1645H;
  PMERR_INVALID_NUMBER_OF_PARMS      = 1646H;
  PMERR_GREATER_THAN_64K             = 1647H;
  PMERR_INVALID_PARAMETER_TYPE       = 1648H;
  PMERR_NEGATIVE_STRCOND_DIM         = 1649H;
  PMERR_INVALID_NUMBER_OF_TYPES      = 164AH;
  PMERR_INCORRECT_HSTRUCT            = 164BH;
  PMERR_INVALID_ARRAY_SIZE           = 164CH;
  PMERR_INVALID_CONTROL_DATATYPE     = 164DH;
  PMERR_INCOMPLETE_CONTROL_SEQU      = 164EH;
  PMERR_INVALID_DATATYPE             = 164FH;
  PMERR_INCORRECT_DATATYPE           = 1650H;
  PMERR_NOT_SELF_DESCRIBING_DTYP     = 1651H;
  PMERR_INVALID_CTRL_SEQ_INDEX       = 1652H;
  PMERR_INVALID_TYPE_FOR_LENGTH      = 1653H;
  PMERR_INVALID_TYPE_FOR_OFFSET      = 1654H;
  PMERR_INVALID_TYPE_FOR_MPARAM      = 1655H;
  PMERR_INVALID_MESSAGE_ID           = 1656H;
  PMERR_C_LENGTH_TOO_SMALL           = 1657H;
  PMERR_APPL_STRUCTURE_TOO_SMALL     = 1658H;
  PMERR_INVALID_ERRORINFO_HANDLE     = 1659H;
  PMERR_INVALID_CHARACTER_INDEX      = 165AH;

END SHLERRORS.
