home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource1 / program3 / pmerr.pas < prev    next >
Pascal/Delphi Source File  |  1993-11-23  |  32KB  |  761 lines

  1. {*****************************************************************************\
  2. *
  3. * Module Name: PMERR.H
  4. *
  5. * OS/2 Presentation Manager public error codes.
  6. *
  7. * They all have a definition commencing PMERR_
  8. *
  9. * This file has been constructed to bring together all the error codes
  10. * into one place.  It has been made up of error codes formerly held in
  11. * PMGPI.H, PMWIN.H, PMSPL.H AND PMSHL.H.
  12. *
  13. * Also, some error codes that were put into a private spooler header
  14. * file have been made public here.
  15. *
  16. * Where the error codes in each public file were defined they have
  17. * been replaced with a "#include <pmerr.h>" to pick up the error codes.
  18. *
  19. * Note ! It could have been possible for an application to use the
  20. * following sort of header :-
  21. *   INCL_ERROR
  22. * #include <os2.h>              - pick up GPI, WIN and SHL errors
  23. * #include <pmspl.h>            - pick up spooler errors
  24. *
  25. * With this new file, error codes from PMWIN, for example, would be
  26. * doubly defined.  Hence each error code section is protected by a
  27. * conditional include to prevent this.
  28. *
  29. * Copyright (c) International Business Machines Corporation 1981, 1988-1990
  30. *
  31. \*****************************************************************************}
  32. {| Version:   1.00
  33.  | Original translation: Peter Sawatzki ps
  34.  | Contributing:
  35.  |   Peter Sawatzki ps
  36.  |
  37.  | change history:
  38.  | Date:    Ver: Author:
  39.  | 11/11/93 1.00 ps     original translation by ps
  40. }
  41. Unit PmErr;
  42. Interface
  43. Uses
  44.   Os2Def;
  45. Const
  46. {*********************************************************************\
  47. *
  48. *            Window Manager error codes
  49. *
  50. * 1.) PMWIN error codes
  51. *
  52. \*********************************************************************}
  53.  
  54.   PMERR_INVALID_HWND                = $1001;
  55.   PMERR_INVALID_HMQ                 = $1002;
  56.   PMERR_PARAMETER_OUT_OF_RANGE      = $1003;
  57.   PMERR_WINDOW_LOCK_UNDERFLOW       = $1004;
  58.   PMERR_WINDOW_LOCK_OVERFLOW        = $1005;
  59.   PMERR_BAD_WINDOW_LOCK_COUNT       = $1006;
  60.   PMERR_WINDOW_NOT_LOCKED           = $1007;
  61.   PMERR_INVALID_SELECTOR            = $1008;
  62.   PMERR_CALL_FROM_WRONG_THREAD      = $1009;
  63.   PMERR_RESOURCE_NOT_FOUND          = $100A;
  64.   PMERR_INVALID_STRING_PARM         = $100B;
  65.   PMERR_INVALID_HHEAP               = $100C;
  66.   PMERR_INVALID_HEAP_POINTER        = $100D;
  67.   PMERR_INVALID_HEAP_SIZE_PARM      = $100E;
  68.   PMERR_INVALID_HEAP_SIZE           = $100F;
  69.   PMERR_INVALID_HEAP_SIZE_WORD      = $1010;
  70.   PMERR_HEAP_OUT_OF_MEMORY          = $1011;
  71.   PMERR_HEAP_MAX_SIZE_REACHED       = $1012;
  72.   PMERR_INVALID_HATOMTBL            = $1013;
  73.   PMERR_INVALID_ATOM                = $1014;
  74.   PMERR_INVALID_ATOM_NAME           = $1015;
  75.   PMERR_INVALID_INTEGER_ATOM        = $1016;
  76.   PMERR_ATOM_NAME_NOT_FOUND         = $1017;
  77.   PMERR_QUEUE_TOO_LARGE             = $1018;
  78.   PMERR_INVALID_FLAG                = $1019;
  79.   PMERR_INVALID_HACCEL              = $101A;
  80.   PMERR_INVALID_HPTR                = $101B;
  81.   PMERR_INVALID_HENUM               = $101C;
  82.   PMERR_INVALID_SRC_CODEPAGE        = $101D;
  83.   PMERR_INVALID_DST_CODEPAGE        = $101E;
  84.  
  85. { These are not real error codes, but just used to access special  }
  86. { error message strings used by WinGetErrorInfo to format an error }
  87. { message.                                                         }
  88.  
  89.   PMERR_UNKNOWN_COMPONENT_ID        = $101f;
  90.   PMERR_UNKNOWN_ERROR_CODE          = $1020;
  91.   PMERR_SEVERITY_LEVELS             = $1021;
  92.  
  93. { 0x1022 - 0x1033, 0x1035, 0x104B - 0x104C used elsewhere          }
  94.   PMERR_INVALID_RESOURCE_FORMAT     = $1034;
  95.   PMERR_NO_MSG_QUEUE                = $1036;
  96.   PMERR_WIN_DEBUGMSG                = $1037;
  97.   PMERR_QUEUE_FULL                  = $1038;
  98.  
  99.   PMERR_LIBRARY_LOAD_FAILED         = $1039;
  100.   PMERR_PROCEDURE_LOAD_FAILED       = $103A;
  101.   PMERR_LIBRARY_DELETE_FAILED       = $103B;
  102.   PMERR_PROCEDURE_DELETE_FAILED     = $103C;
  103.  
  104.   PMERR_ARRAY_TOO_LARGE             = $103D;
  105.   PMERR_ARRAY_TOO_SMALL             = $103E;
  106.   PMERR_DATATYPE_ENTRY_BAD_INDEX    = $103F;
  107.   PMERR_DATATYPE_ENTRY_CTL_BAD      = $1040;
  108.   PMERR_DATATYPE_ENTRY_CTL_MISS     = $1041;
  109.   PMERR_DATATYPE_ENTRY_INVALID      = $1042;
  110.   PMERR_DATATYPE_ENTRY_NOT_NUM      = $1043;
  111.   PMERR_DATATYPE_ENTRY_NOT_OFF      = $1044;
  112.   PMERR_DATATYPE_INVALID            = $1045;
  113.   PMERR_DATATYPE_NOT_UNIQUE         = $1046;
  114.   PMERR_DATATYPE_TOO_LONG           = $1047;
  115.   PMERR_DATATYPE_TOO_SMALL          = $1048;
  116.   PMERR_DIRECTION_INVALID           = $1049;
  117.   PMERR_INVALID_HAB                 = $104A;
  118.   PMERR_INVALID_HSTRUCT             = $104D;
  119.   PMERR_LENGTH_TOO_SMALL            = $104E;
  120.   PMERR_MSGID_TOO_SMALL             = $104F;
  121.   PMERR_NO_HANDLE_ALLOC             = $1050;
  122.   PMERR_NOT_IN_A_PM_SESSION         = $1051;
  123.   PMERR_MSG_QUEUE_ALREADY_EXISTS    = $1052;
  124.  
  125. {*********************************************************************\
  126. *
  127. *            Window Manager error codes
  128. *
  129. * 2.) PMSHL error codes
  130. *
  131. \*********************************************************************}
  132.  
  133.   PMERR_INVALID_PIB              = $1101;
  134.   PMERR_INSUFF_SPACE_TO_ADD      = $1102;
  135.   PMERR_INVALID_GROUP_HANDLE     = $1103;
  136.   PMERR_DUPLICATE_TITLE          = $1104;
  137.   PMERR_INVALID_TITLE            = $1105;
  138.   PMERR_HANDLE_NOT_IN_GROUP      = $1107;
  139.   PMERR_INVALID_TARGET_HANDLE    = $1106;
  140.   PMERR_INVALID_PATH_STATEMENT   = $1108;
  141.   PMERR_NO_PROGRAM_FOUND         = $1109;
  142.   PMERR_INVALID_BUFFER_SIZE      = $110A;
  143.   PMERR_BUFFER_TOO_SMALL         = $110B;
  144.   PMERR_PL_INITIALISATION_FAIL   = $110C;
  145.   PMERR_CANT_DESTROY_SYS_GROUP   = $110D;
  146.   PMERR_INVALID_TYPE_CHANGE      = $110E;
  147.   PMERR_INVALID_PROGRAM_HANDLE   = $110F;
  148.  
  149.   PMERR_NOT_CURRENT_PL_VERSION   = $1110;
  150.   PMERR_INVALID_CIRCULAR_REF     = $1111;
  151.   PMERR_MEMORY_ALLOCATION_ERR    = $1112;
  152.   PMERR_MEMORY_DEALLOCATION_ERR  = $1113;
  153.   PMERR_TASK_HEADER_TOO_BIG      = $1114;
  154.  
  155.   PMERR_INVALID_INI_FILE_HANDLE  = $1115;
  156.   PMERR_MEMORY_SHARE             = $1116;
  157.   PMERR_OPEN_QUEUE               = $1117;
  158.   PMERR_CREATE_QUEUE             = $1118;
  159.   PMERR_WRITE_QUEUE              = $1119;
  160.   PMERR_READ_QUEUE               = $111A;
  161.   PMERR_CALL_NOT_EXECUTED        = $111B;
  162.   PMERR_UNKNOWN_APIPKT           = $111C;
  163.   PMERR_INITHREAD_EXISTS         = $111D;
  164.   PMERR_CREATE_THREAD            = $111E;
  165.   PMERR_NO_HK_PROFILE_INSTALLED  = $111F;
  166.   PMERR_INVALID_DIRECTORY        = $1120;
  167.   PMERR_WILDCARD_IN_FILENAME     = $1121;
  168.   PMERR_FILENAME_BUFFER_FULL     = $1122;
  169.   PMERR_FILENAME_TOO_LONG        = $1123;
  170.   PMERR_INI_FILE_IS_SYS_OR_USER  = $1124;
  171.   PMERR_BROADCAST_PLMSG          = $1125;
  172.   PMERR_190_INIT_DONE            = $1126;
  173.   PMERR_HMOD_FOR_PMSHAPI         = $1127;
  174.   PMERR_SET_HK_PROFILE           = $1128;
  175.   PMERR_API_NOT_ALLOWED          = $1129;
  176.   PMERR_INI_STILL_OPEN           = $112A;
  177.  
  178.   PMERR_PROGDETAILS_NOT_IN_INI   = $112B;
  179.   PMERR_PIBSTRUCT_NOT_IN_INI     = $112C;
  180.   PMERR_INVALID_DISKPROGDETAILS  = $112D;
  181.   PMERR_PROGDETAILS_READ_FAILURE = $112E;
  182.   PMERR_PROGDETAILS_WRITE_FAILURE= $112F;
  183.   PMERR_PROGDETAILS_QSIZE_FAILURE= $1130;
  184.   PMERR_INVALID_PROGDETAILS      = $1131;
  185.   PMERR_SHEPROFILEHOOK_NOT_FOUND = $1132;
  186.   PMERR_190PLCONVERTED           = $1133;
  187.   PMERR_FAILED_TO_CONVERT_INI_PL = $1134;
  188.   PMERR_PMSHAPI_NOT_INITIALISED  = $1135;
  189.   PMERR_INVALID_SHELL_API_HOOK_ID= $1136;
  190.  
  191.   PMERR_DOS_ERROR                = $1200;
  192.  
  193.   PMERR_NO_SPACE                 = $1201;
  194.   PMERR_INVALID_SWITCH_HANDLE    = $1202;
  195.   PMERR_NO_HANDLE                = $1203;
  196.   PMERR_INVALID_PROCESS_ID       = $1204;
  197.   PMERR_NOT_SHELL                = $1205;
  198.   PMERR_INVALID_WINDOW           = $1206;
  199.   PMERR_INVALID_POST_MSG         = $1207;
  200.   PMERR_INVALID_PARAMETERS       = $1208;
  201.   PMERR_INVALID_PROGRAM_TYPE     = $1209;
  202.   PMERR_NOT_EXTENDED_FOCUS       = $120A;
  203.   PMERR_INVALID_SESSION_ID       = $120B;
  204.   PMERR_SMG_INVALID_ICON_FILE    = $120C;
  205.   PMERR_SMG_ICON_NOT_CREATED     = $120D;
  206.   PMERR_SHL_DEBUG                = $120E;
  207.  
  208.   PMERR_OPENING_INI_FILE         = $1301;
  209.   PMERR_INI_FILE_CORRUPT         = $1302;
  210.   PMERR_INVALID_PARM             = $1303;
  211.   PMERR_NOT_IN_IDX               = $1304;