home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / pmerr.h < prev    next >
C/C++ Source or Header  |  1999-04-30  |  49KB  |  928 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: PMERR.H
  4. *
  5. * This file contains all the public PM error codes.
  6. *
  7. * This file has been constructed to bring together all the error codes
  8. * into one place.
  9. *
  10. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  11. *
  12. * ===========================================================================
  13. *
  14. * Comments at the end of each typedef line give the name tags used in
  15. * the assembler include version of this file.
  16. *
  17. * The assembler include version of this file excludes lines between XLATOFF
  18. * and XLATON comments.
  19. *
  20. \***************************************************************************/
  21.  
  22. /* NOINC */
  23. #if __IBMC__ || __IBMCPP__
  24.    #pragma info( none )
  25.    #ifndef __CHKHDR__
  26.       #pragma info( none )
  27.    #endif
  28.    #pragma info( restore )
  29. #endif
  30. #ifdef __cplusplus
  31.       extern "C" {
  32. #endif
  33. /* INC */
  34.  
  35.  
  36.  
  37. #define PMERR_INCLUDED
  38.  
  39. /****************************************************************************
  40. *** Window Manager error codes
  41. ****************************************************************************/
  42.  
  43. #ifdef INCL_WINERRORS
  44.    #ifndef INCL_WINERRORS_INCL
  45.       /* XLATOFF */
  46.       #define INCL_WINERRORS_INCL
  47.       /* XLATON */
  48.       
  49.       #define PMERR_INVALID_HWND                  0x1001
  50.       #define PMERR_INVALID_HMQ                   0x1002
  51.       #define PMERR_PARAMETER_OUT_OF_RANGE        0x1003
  52.       #define PMERR_WINDOW_LOCK_UNDERFLOW         0x1004
  53.       #define PMERR_WINDOW_LOCK_OVERFLOW          0x1005
  54.       #define PMERR_BAD_WINDOW_LOCK_COUNT         0x1006
  55.       #define PMERR_WINDOW_NOT_LOCKED             0x1007
  56.       #define PMERR_INVALID_SELECTOR              0x1008
  57.       #define PMERR_CALL_FROM_WRONG_THREAD        0x1009
  58.       #define PMERR_RESOURCE_NOT_FOUND            0x100A
  59.       #define PMERR_INVALID_STRING_PARM           0x100B
  60.       #define PMERR_INVALID_HHEAP                 0x100C
  61.       #define PMERR_INVALID_HEAP_POINTER          0x100D
  62.       #define PMERR_INVALID_HEAP_SIZE_PARM        0x100E
  63.       #define PMERR_INVALID_HEAP_SIZE             0x100F
  64.       #define PMERR_INVALID_HEAP_SIZE_WORD        0x1010
  65.       #define PMERR_HEAP_OUT_OF_MEMORY            0x1011
  66.       #define PMERR_HEAP_MAX_SIZE_REACHED         0x1012
  67.       #define PMERR_INVALID_HATOMTBL              0x1013
  68.       #define PMERR_INVALID_ATOM                  0x1014
  69.       #define PMERR_INVALID_ATOM_NAME             0x1015
  70.       #define PMERR_INVALID_INTEGER_ATOM          0x1016
  71.       #define PMERR_ATOM_NAME_NOT_FOUND           0x1017
  72.       #define PMERR_QUEUE_TOO_LARGE               0x1018
  73.       #define PMERR_INVALID_FLAG                  0x1019
  74.       #define PMERR_INVALID_HACCEL                0x101A
  75.       #define PMERR_INVALID_HPTR                  0x101B
  76.       #define PMERR_INVALID_HENUM                 0x101C
  77.       #define PMERR_INVALID_SRC_CODEPAGE          0x101D
  78.       #define PMERR_INVALID_DST_CODEPAGE          0x101E
  79.       
  80.       /* These are not real error codes, but just used to access special  */
  81.       /* error message strings used by WinGetErrorInfo to format an error */
  82.       /* message.                                                         */
  83.       
  84.       #define PMERR_UNKNOWN_COMPONENT_ID          0x101f
  85.       #define PMERR_UNKNOWN_ERROR_CODE            0x1020
  86.       #define PMERR_SEVERITY_LEVELS               0x1021
  87.       
  88.       /* 0x1022 - 0x1033, 0x1035, 0x104B - 0x104C used elsewhere          */
  89.       #define PMERR_INVALID_RESOURCE_FORMAT       0x1034
  90.       #define WINDBG_WINDOW_UNLOCK_WAIT           0x1035
  91.       #define PMERR_NO_MSG_QUEUE                  0x1036
  92.       #define PMERR_CANNOT_SET_FOCUS              0x1037
  93.       #define PMERR_QUEUE_FULL                    0x1038
  94.       
  95.       #define PMERR_LIBRARY_LOAD_FAILED           0x1039
  96.       #define PMERR_PROCEDURE_LOAD_FAILED         0x103A
  97.       #define PMERR_LIBRARY_DELETE_FAILED         0x103B
  98.       #define PMERR_PROCEDURE_DELETE_FAILED       0x103C
  99.       #define PMERR_ARRAY_TOO_LARGE               0x103D
  100.       #define PMERR_ARRAY_TOO_SMALL               0x103E
  101.       #define PMERR_DATATYPE_ENTRY_BAD_INDEX      0x103F
  102.       #define PMERR_DATATYPE_ENTRY_CTL_BAD        0x1040
  103.       #define PMERR_DATATYPE_ENTRY_CTL_MISS       0x1041
  104.       #define PMERR_DATATYPE_ENTRY_INVALID        0x1042
  105.       #define PMERR_DATATYPE_ENTRY_NOT_NUM        0x1043
  106.       #define PMERR_DATATYPE_ENTRY_NOT_OFF        0x1044
  107.       #define PMERR_DATATYPE_INVALID              0x1045
  108.       #define PMERR_DATATYPE_NOT_UNIQUE           0x1046
  109.       #define PMERR_DATATYPE_TOO_LONG             0x1047
  110.       #define PMERR_DATATYPE_TOO_SMALL            0x1048
  111.       #define PMERR_DIRECTION_INVALID             0x1049
  112.       #define PMERR_INVALID_HAB                   0x104A
  113.       #define PMERR_INVALID_HSTRUCT               0x104D
  114.       #define PMERR_LENGTH_TOO_SMALL              0x104E
  115.       #define PMERR_MSGID_TOO_SMALL               0x104F
  116.       #define PMERR_NO_HANDLE_ALLOC               0x1050
  117.       #define PMERR_NOT_IN_A_PM_SESSION           0x1051
  118.       #define PMERR_MSG_QUEUE_ALREADY_EXISTS      0x1052
  119.       #define PMERR_SEND_MSG_TIMEOUT              0x1053
  120.       #define PMERR_SEND_MSG_FAILED               0x1054
  121.       #define PMERR_OLD_RESOURCE                  0x1055
  122.       
  123.       #define PMERR_BIDI_FIRST                    0x10F0
  124.       #define PMERR_BIDI_LAST                     0x10FF
  125.       
  126.       #ifdef SOM2VERSION                                                             /* EEO:85870 */
  127.          #define PMERR_WPDSERVER_IS_ACTIVE        0x1056
  128.          #define PMERR_WPDSERVER_NOT_STARTED      0x1057
  129.          #define PMERR_SOMDD_IS_ACTIVE            0x1058
  130.          #define PMERR_SOMDD_NOT_STARTED          0x1059
  131.       #endif                                                                         /* EEO:85870 */
  132.    #endif /* error codes already included */
  133. #endif /* include error codes */
  134.  
  135. /***********************************************************************
  136. *
  137. *            Window Manager error codes
  138. *
  139. * 2.) PMSHL error codes
  140. *
  141. ***********************************************************************/
  142.  
  143. #ifdef INCL_SHLERRORS
  144.    
  145.    #ifndef INCL_SHLERRORS_INCL
  146.       /* XLATOFF */
  147.       #define INCL_SHLERRORS_INCL
  148.       /* XLATON */
  149.       
  150.       #define PMERR_INVALID_PIB                0x1101
  151.       #define PMERR_INSUFF_SPACE_TO_ADD        0x1102
  152.       #define PMERR_INVALID_GROUP_HANDLE       0x1103
  153.       #define PMERR_DUPLICATE_TITLE            0x1104
  154.       #define PMERR_INVALID_TITLE              0x1105
  155.       #define PMERR_HANDLE_NOT_IN_GROUP        0x1107
  156.       #define PMERR_INVALID_TARGET_HANDLE      0x1106
  157.       #define PMERR_INVALID_PATH_STATEMENT     0x1108
  158.       #define PMERR_NO_PROGRAM_FOUND           0x1109
  159.       #define PMERR_INVALID_BUFFER_SIZE        0x110A
  160.       #define PMERR_BUFFER_TOO_SMALL           0x110B
  161.       #define PMERR_PL_INITIALISATION_FAIL     0x110C
  162.       #define PMERR_CANT_DESTROY_SYS_GROUP     0x110D
  163.       #define PMERR_INVALID_TYPE_CHANGE        0x110E
  164.       #define PMERR_INVALID_PROGRAM_HANDLE     0x110F
  165.       
  166.       #define PMERR_NOT_CURRENT_PL_VERSION     0x1110
  167.       #define PMERR_INVALID_CIRCULAR_REF       0x1111
  168.       #define PMERR_MEMORY_ALLOCATION_ERR      0x1112
  169.       #define PMERR_MEMORY_DEALLOCATION_ERR    0x1113
  170.       #define PMERR_TASK_HEADER_TOO_BIG        0x1114
  171.       
  172.       #define PMERR_INVALID_INI_FILE_HANDLE    0x1115
  173.       #define PMERR_MEMORY_SHARE               0x1116
  174.       #define PMERR_OPEN_QUEUE                 0x1117
  175.       #define PMERR_CREATE_QUEUE               0x1118
  176.       #define PMERR_WRITE_QUEUE                0x1119
  177.       #define PMERR_READ_QUEUE                 0x111A
  178.       #define PMERR_CALL_NOT_EXECUTED          0x111B
  179.       #define PMERR_UNKNOWN_APIPKT             0x111C
  180.       #define PMERR_INITHREAD_EXISTS           0x111D
  181.       #define PMERR_CREATE_THREAD              0x111E
  182.       #define PMERR_NO_HK_PROFILE_INSTALLED    0x111F
  183.       #define PMERR_INVALID_DIRECTORY          0x1120
  184.       #define PMERR_WILDCARD_IN_FILENAME       0x1121
  185.       #define PMERR_FILENAME_BUFFER_FULL       0x1122
  186.       #define PMERR_FILENAME_TOO_LONG          0x1123
  187.       #define PMERR_INI_FILE_IS_SYS_OR_USER    0x1124
  188.       #define PMERR_BROADCAST_PLMSG            0x1125
  189.       #define PMERR_190_INIT_DONE              0x1126
  190.       #define PMERR_HMOD_FOR_PMSHAPI           0x1127
  191.       #define PMERR_SET_HK_PROFILE             0x1128
  192.       #define PMERR_API_NOT_ALLOWED            0x1129
  193.       #define PMERR_INI_STILL_OPEN             0x112A
  194.       
  195.       #define PMERR_PROGDETAILS_NOT_IN_INI     0x112B
  196.       #define PMERR_PIBSTRUCT_NOT_IN_INI       0x112C
  197.       #define PMERR_INVALID_DISKPROGDETAILS    0x112D
  198.       #define PMERR_PROGDETAILS_READ_FAILURE   0x112E
  199.       #define PMERR_PROGDETAILS_WRITE_FAILURE  0x112F
  200.       #define PMERR_PROGDETAILS_QSIZE_FAILURE  0x1130
  201.       #define PMERR_INVALID_PROGDETAILS        0x1131
  202.       #define PMERR_SHEPROFILEHOOK_NOT_FOUND   0x1132
  203.       #define PMERR_190PLCONVERTED             0x1133
  204.       #define PMERR_FAILED_TO_CONVERT_INI_PL   0x1134
  205.       #define PMERR_PMSHAPI_NOT_INITIALISED    0x1135
  206.       #define PMERR_INVALID_SHELL_API_HOOK_ID  0x1136
  207.       
  208.       #define PMERR_DOS_ERROR                  0x1200
  209.       
  210.       #define PMERR_NO_SPACE                   0x1201
  211.       #define PMERR_INVALID_SWITCH_HANDLE      0x1202
  212.       #define PMERR_NO_HANDLE                  0x1203
  213.       #define PMERR_INVALID_PROCESS_ID         0x1204
  214.       #define PMERR_NOT_SHELL                  0x1205
  215.       #define PMERR_INVALID_WINDOW             0x1206
  216.       #define PMERR_INVALID_POST_MSG           0x1207
  217.       #define PMERR_INVALID_PARAMETERS         0x1208
  218.       #define PMERR_INVALID_PROGRAM_TYPE       0x1209
  219.       #define PMERR_NOT_EXTENDED_FOCUS         0x120A
  220.       #define PMERR_INVALID_SESSION_ID         0x120B
  221.       #define PMERR_SMG_INVALID_ICON_FILE      0x120C
  222.       #define PMERR_SMG_ICON_NOT_CREATED       0x120D
  223.       #define PMERR_SHL_DEBUG                  0x120E
  224.       
  225.       #define PMERR_OPENING_INI_FILE           0x1301
  226.       #define PMERR_INI_FILE_CORRUPT           0x1302
  227.       #define PMERR_INVALID_PARM               0x1303
  228.       #define PMERR_NOT_IN_IDX                 0x1304
  229.       #define PMERR_NO_ENTRIES_IN_GROUP        0x1305
  230.       
  231.       #define PMERR_INI_WRITE_FAIL             0x1306
  232.       #define PMERR_IDX_FULL                   0x1307
  233.       #define PMERR_INI_PROTECTED              0x1308
  234.       #define PMERR_MEMORY_ALLOC               0x1309
  235.       #define PMERR_INI_INIT_ALREADY_DONE      0x130A
  236.       #define PMERR_INVALID_INTEGER            0x130B
  237.       #define PMERR_INVALID_ASCIIZ             0x130C
  238.       #define PMERR_CAN_NOT_CALL_SPOOLER       0x130D
  239.       #define PMERR_VALIDATION_REJECTED        PMERR_CAN_NOT_CALL_SPOOLER
  240.       
  241.       #define PMERR_WARNING_WINDOW_NOT_KILLED  0x1401
  242.       #define PMERR_ERROR_INVALID_WINDOW       0x1402
  243.       #define PMERR_ALREADY_INITIALIZED        0x1403
  244.       #define PMERR_MSG_PROG_NO_MOU            0x1405
  245.       #define PMERR_MSG_PROG_NON_RECOV         0x1406
  246.       #define PMERR_WINCONV_INVALID_PATH       0x1407
  247.       #define PMERR_PI_NOT_INITIALISED         0x1408
  248.       #define PMERR_PL_NOT_INITIALISED         0x1409
  249.       #define PMERR_NO_TASK_MANAGER            0x140A
  250.       #define PMERR_SAVE_NOT_IN_PROGRESS       0x140B
  251.       #define PMERR_NO_STACK_SPACE             0x140C
  252.       #define PMERR_INVALID_COLR_FIELD         0x140d
  253.       #define PMERR_INVALID_COLR_VALUE         0x140e
  254.       #define PMERR_COLR_WRITE                 0x140f
  255.       
  256.       #define PMERR_TARGET_FILE_EXISTS         0x1501
  257.       #define PMERR_SOURCE_SAME_AS_TARGET      0x1502
  258.       #define PMERR_SOURCE_FILE_NOT_FOUND      0x1503
  259.       #define PMERR_INVALID_NEW_PATH           0x1504
  260.       #define PMERR_TARGET_FILE_NOT_FOUND      0x1505
  261.       #define PMERR_INVALID_DRIVE_NUMBER       0x1506
  262.       #define PMERR_NAME_TOO_LONG              0x1507
  263.       #define PMERR_NOT_ENOUGH_ROOM_ON_DISK    0x1508
  264.       #define PMERR_NOT_ENOUGH_MEM             0x1509
  265.       
  266.       #define PMERR_LOG_DRV_DOES_NOT_EXIST     0x150B
  267.       #define PMERR_INVALID_DRIVE              0x150C
  268.       #define PMERR_ACCESS_DENIED              0x150D
  269.       #define PMERR_NO_FIRST_SLASH             0x150E
  270.       #define PMERR_READ_ONLY_FILE             0x150F
  271.       #define PMERR_GROUP_PROTECTED            0x151F
  272.       #define PMERR_INVALID_PROGRAM_CATEGORY   0x152F
  273.       #define PMERR_INVALID_APPL               0x1530
  274.       #define PMERR_CANNOT_START               0x1531
  275.       #define PMERR_STARTED_IN_BACKGROUND      0x1532
  276.       #define PMERR_INVALID_HAPP               0x1533
  277.       #define PMERR_CANNOT_STOP                0x1534
  278.       
  279.       /**********************************************************************
  280.       * Errors generated by Language Bindings layer.
  281.       *
  282.       * (Range 0x1600 thru 0x16FF reserved for Bindings)
  283.       **********************************************************************/
  284.       
  285.       /*** SEVERITY_UNRECOVERABLE ***/
  286.       #define PMERR_INTERNAL_ERROR_1           0x1601
  287.       #define PMERR_INTERNAL_ERROR_2           0x1602
  288.       #define PMERR_INTERNAL_ERROR_3           0x1603
  289.       #define PMERR_INTERNAL_ERROR_4           0x1604
  290.       #define PMERR_INTERNAL_ERROR_5           0x1605
  291.       #define PMERR_INTERNAL_ERROR_6           0x1606
  292.       #define PMERR_INTERNAL_ERROR_7           0x1607
  293.       #define PMERR_INTERNAL_ERROR_8           0x1608
  294.       #define PMERR_INTERNAL_ERROR_9           0x1609
  295.       #define PMERR_INTERNAL_ERROR_10          0x160A
  296.       #define PMERR_INTERNAL_ERROR_11          0x160B
  297.       #define PMERR_INTERNAL_ERROR_12          0x160C
  298.       #define PMERR_INTERNAL_ERROR_13          0x160D
  299.       #define PMERR_INTERNAL_ERROR_14          0x160E
  300.       #define PMERR_INTERNAL_ERROR_15          0x160F
  301.       #define PMERR_INTERNAL_ERROR_16          0x1610
  302.       #define PMERR_INTERNAL_ERROR_17          0x1611
  303.       #define PMERR_INTERNAL_ERROR_18          0x1612
  304.       #define PMERR_INTERNAL_ERROR_19          0x1613
  305.       #define PMERR_INTERNAL_ERROR_20          0x1614
  306.       #define PMERR_INTERNAL_ERROR_21          0x1615
  307.       #define PMERR_INTERNAL_ERROR_22          0x1616
  308.       #define PMERR_INTERNAL_ERROR_23          0x1617
  309.       #define PMERR_INTERNAL_ERROR_24          0x1618
  310.       #define PMERR_INTERNAL_ERROR_25          0x1619
  311.       #define PMERR_INTERNAL_ERROR_26          0x161A
  312.       #define PMERR_INTERNAL_ERROR_27          0x161B
  313.       #define PMERR_INTERNAL_ERROR_28          0x161C
  314.       #define PMERR_INTERNAL_ERROR_29          0x161D
  315.       
  316.       /*** SEVERITY_WARNING ***/
  317.       #define PMERR_INVALID_FREE_MESSAGE_ID    0x1630
  318.       
  319.       /*** SEVERITY_ERROR ***/
  320.       
  321.       #define PMERR_FUNCTION_NOT_SUPPORTED     0x1641
  322.       #define PMERR_INVALID_ARRAY_COUNT        0x1642
  323.       #define PMERR_INVALID_LENGTH             0x1643
  324.       #define PMERR_INVALID_BUNDLE_TYPE        0x1644
  325.       #define PMERR_INVALID_PARAMETER          0x1645
  326.       #define PMERR_INVALID_NUMBER_OF_PARMS    0x1646
  327.       #define PMERR_GREATER_THAN_64K           0x1647
  328.       #define PMERR_INVALID_PARAMETER_TYPE     0x1648
  329.       #define PMERR_NEGATIVE_STRCOND_DIM       0x1649
  330.       #define PMERR_INVALID_NUMBER_OF_TYPES    0x164A
  331.       #define PMERR_INCORRECT_HSTRUCT          0x164B
  332.       #define PMERR_INVALID_ARRAY_SIZE         0x164C
  333.       #define PMERR_INVALID_CONTROL_DATATYPE   0x164D
  334.       #define PMERR_INCOMPLETE_CONTROL_SEQU    0x164E
  335.       #define PMERR_INVALID_DATATYPE           0x164F
  336.       #define PMERR_INCORRECT_DATATYPE         0x1650
  337.       #define PMERR_NOT_SELF_DESCRIBING_DTYP   0x1651
  338.       #define PMERR_INVALID_CTRL_SEQ_INDEX     0x1652
  339.       #define PMERR_INVALID_TYPE_FOR_LENGTH    0x1653
  340.       #define PMERR_INVALID_TYPE_FOR_OFFSET    0x1654
  341.       #define PMERR_INVALID_TYPE_FOR_MPARAM    0x1655
  342.       #define PMERR_INVALID_MESSAGE_ID         0x1656
  343.       #define PMERR_C_LENGTH_TOO_SMALL         0x1657
  344.       #define PMERR_APPL_STRUCTURE_TOO_SMALL   0x1658
  345.       #define PMERR_INVALID_ERRORINFO_HANDLE   0x1659
  346.       #define PMERR_INVALID_CHARACTER_INDEX    0x165A
  347.       
  348.       /**********************************************************************
  349.       * End of Errors generated by Language Bindings layer.
  350.       *
  351.       * (Range 0x1600 thru 0x16FF reserved for Bindings)
  352.       **********************************************************************/
  353.    #endif /* error codes already included */
  354. #endif /* include error codes */
  355.  
  356. /**********************************************************************\
  357. *
  358. *            Workplace Shell error codes
  359. *
  360. * PMWP error codes
  361. *
  362. \**********************************************************************/
  363.  
  364. #ifdef INCL_WPERRORS
  365.    
  366.    #ifndef INCL_WPERRORS_INCL
  367.       /* XLATOFF */
  368.       #define INCL_WPERRORS_INCL
  369.       /* XLATON */
  370.       
  371.       #define WPERR_PROTECTED_CLASS            0x1700
  372.       #define WPERR_INVALID_CLASS              0x1701
  373.       #define WPERR_INVALID_SUPERCLASS         0x1702
  374.       #define WPERR_NO_MEMORY                  0x1703
  375.       #define WPERR_SEMAPHORE_ERROR            0x1704
  376.       #define WPERR_BUFFER_TOO_SMALL           0x1705
  377.       #define WPERR_CLSLOADMOD_FAILED          0x1706
  378.       #define WPERR_CLSPROCADDR_FAILED         0x1707
  379.       #define WPERR_OBJWORD_LOCATION           0x1708
  380.       #define WPERR_INVALID_OBJECT             0x1709
  381.       #define WPERR_MEMORY_CLEANUP             0x170A
  382.       #define WPERR_INVALID_MODULE             0x170B
  383.       #define WPERR_INVALID_OLDCLASS           0x170C
  384.       #define WPERR_INVALID_NEWCLASS           0x170D
  385.       #define WPERR_NOT_IMMEDIATE_CHILD        0x170E
  386.       #define WPERR_NOT_WORKPLACE_CLASS        0x170F
  387.       #define WPERR_CANT_REPLACE_METACLS       0x1710
  388.       #define WPERR_INI_FILE_WRITE             0x1711
  389.       #define WPERR_INVALID_FOLDER             0x1712
  390.       #define WPERR_BUFFER_OVERFLOW            0x1713
  391.       #define WPERR_OBJECT_NOT_FOUND           0x1714
  392.       #define WPERR_INVALID_HFIND              0x1715
  393.       #define WPERR_INVALID_COUNT              0x1716
  394.       #define WPERR_INVALID_BUFFER             0x1717
  395.       #define WPERR_ALREADY_EXISTS             0x1718
  396.       #define WPERR_INVALID_FLAGS              0x1719
  397.       #define WPERR_INVALID_OBJECTID           0x1720
  398.       #define WPERR_INVALID_TARGET_OBJECT      0x1721
  399.       #define WPERR_APM_NOT_INSTALLED          0x1722                           //ihs183342
  400.       #define WPERR_APM_NOT_ENABLED            0x1723                           //ihs183342
  401.       #define WPERR_APM_NOT_ENGAGED            0x1724                           //ihs183342
  402.       #define WPERR_APM_FUNCTION_NOT_SUPPORTED 0x1725                           //ihs183342
  403.       #define WPERR_APM_INVALID_PARAMETER      0x1726                           //ihs183342
  404.       #define WPERR_APM_USER_CANCEL            0x1727                           //ihs183342
  405.       
  406.    #endif /* error codes already included */
  407. #endif /* include error codes */
  408.  
  409.  
  410. /********************************************************************
  411. *** GPI error codes
  412. ********************************************************************/
  413. #ifdef INCL_GPIERRORS
  414.    #ifndef INCL_GPIERRORS_INCL
  415.       /* XLATOFF */
  416.       #define INCL_GPIERRORS_INCL
  417.       /* XLATON */
  418.       
  419.       /* AAB error codes for the GPI */
  420.       #define PMERR_OK                           0x0000
  421.       #define PMERR_ALREADY_IN_AREA              0x2001
  422.       #define PMERR_ALREADY_IN_ELEMENT           0x2002
  423.       #define PMERR_ALREADY_IN_PATH              0x2003
  424.       #define PMERR_ALREADY_IN_SEG               0x2004
  425.       #define PMERR_AREA_INCOMPLETE              0x2005
  426.       #define PMERR_BASE_ERROR                   0x2006
  427.       #define PMERR_BITBLT_LENGTH_EXCEEDED       0x2007
  428.       #define PMERR_BITMAP_IN_USE                0x2008
  429.       #define PMERR_BITMAP_IS_SELECTED           0x2009
  430.       #define PMERR_BITMAP_NOT_FOUND             0x200A
  431.       #define PMERR_BITMAP_NOT_SELECTED          0x200B
  432.       #define PMERR_BOUNDS_OVERFLOW              0x200C
  433.       #define PMERR_CALLED_SEG_IS_CHAINED        0x200D
  434.       #define PMERR_CALLED_SEG_IS_CURRENT        0x200E
  435.       #define PMERR_CALLED_SEG_NOT_FOUND         0x200F
  436.       #define PMERR_CANNOT_DELETE_ALL_DATA       0x2010
  437.       #define PMERR_CANNOT_REPLACE_ELEMENT_0     0x2011
  438.       #define PMERR_COL_TABLE_NOT_REALIZABLE     0x2012
  439.       #define PMERR_COL_TABLE_NOT_REALIZED       0x2013
  440.       #define PMERR_COORDINATE_OVERFLOW          0x2014
  441.       #define PMERR_CORR_FORMAT_MISMATCH         0x2015
  442.       #define PMERR_DATA_TOO_LONG                0x2016
  443.       #define PMERR_DC_IS_ASSOCIATED             0x2017
  444.       #define PMERR_DESC_STRING_TRUNCATED        0x2018
  445.       #define PMERR_DEVICE_DRIVER_ERROR_1        0x2019
  446.       #define PMERR_DEVICE_DRIVER_ERROR_2        0x201A
  447.       #define PMERR_DEVICE_DRIVER_ERROR_3        0x201B
  448.       #define PMERR_DEVICE_DRIVER_ERROR_4        0x201C
  449.       #define PMERR_DEVICE_DRIVER_ERROR_5        0x201D
  450.       #define PMERR_DEVICE_DRIVER_ERROR_6        0x201E
  451.       #define PMERR_DEVICE_DRIVER_ERROR_7        0x201F
  452.       #define PMERR_DEVICE_DRIVER_ERROR_8        0x2020
  453.       #define PMERR_DEVICE_DRIVER_ERROR_9        0x2021
  454.       #define PMERR_DEVICE_DRIVER_ERROR_10       0x2022
  455.       #define PMERR_DEV_FUNC_NOT_INSTALLED       0x2023
  456.       #define PMERR_DOSOPEN_FAILURE              0x2024
  457.       #define PMERR_DOSREAD_FAILURE              0x2025
  458.       #define PMERR_DRIVER_NOT_FOUND             0x2026
  459.       #define PMERR_DUP_SEG                      0x2027
  460.       #define PMERR_DYNAMIC_SEG_SEQ_ERROR        0x2028
  461.       #define PMERR_DYNAMIC_SEG_ZERO_INV         0x2029
  462.       #define PMERR_ELEMENT_INCOMPLETE           0x202A
  463.       #define PMERR_ESC_CODE_NOT_SUPPORTED       0x202B
  464.       #define PMERR_EXCEEDS_MAX_SEG_LENGTH       0x202C
  465.       #define PMERR_FONT_AND_MODE_MISMATCH       0x202D
  466.       #define PMERR_FONT_FILE_NOT_LOADED         0x202E
  467.       #define PMERR_FONT_NOT_LOADED              0x202F
  468.       #define PMERR_FONT_TOO_BIG                 0x2030
  469.       #define PMERR_HARDWARE_INIT_FAILURE        0x2031
  470.       #define PMERR_HBITMAP_BUSY                 0x2032
  471.       #define PMERR_HDC_BUSY                     0x2033
  472.       #define PMERR_HRGN_BUSY                    0x2034
  473.       #define PMERR_HUGE_FONTS_NOT_SUPPORTED     0x2035
  474.       #define PMERR_ID_HAS_NO_BITMAP             0x2036
  475.       #define PMERR_IMAGE_INCOMPLETE             0x2037
  476.       #define PMERR_INCOMPAT_COLOR_FORMAT        0x2038
  477.       #define PMERR_INCOMPAT_COLOR_OPTIONS       0x2039
  478.       #define PMERR_INCOMPATIBLE_BITMAP          0x203A
  479.       #define PMERR_INCOMPATIBLE_METAFILE        0x203B
  480.       #define PMERR_INCORRECT_DC_TYPE            0x203C
  481.       #define PMERR_INSUFFICIENT_DISK_SPACE      0x203D
  482.       #define PMERR_INSUFFICIENT_MEMORY          0x203E
  483.       #define PMERR_INV_ANGLE_PARM               0x203F
  484.       #define PMERR_INV_ARC_CONTROL              0x2040
  485.       #define PMERR_INV_AREA_CONTROL             0x2041
  486.       #define PMERR_INV_ARC_POINTS               0x2042
  487.       #define PMERR_INV_ATTR_MODE                0x2043
  488.       #define PMERR_INV_BACKGROUND_COL_ATTR      0x2044
  489.       #define PMERR_INV_BACKGROUND_MIX_ATTR      0x2045
  490.       #define PMERR_INV_BITBLT_MIX               0x2046
  491.       #define PMERR_INV_BITBLT_STYLE             0x2047
  492.       #define PMERR_INV_BITMAP_DIMENSION         0x2048
  493.       #define PMERR_INV_BOX_CONTROL              0x2049
  494.       #define PMERR_INV_BOX_ROUNDING_PARM        0x204A
  495.       #define PMERR_INV_CHAR_ANGLE_ATTR          0x204B
  496.       #define PMERR_INV_CHAR_DIRECTION_ATTR      0x204C
  497.       #define PMERR_INV_CHAR_MODE_ATTR           0x204D
  498.       #define PMERR_INV_CHAR_POS_OPTIONS         0x204E
  499.       #define PMERR_INV_CHAR_SET_ATTR            0x204F
  500.       #define PMERR_INV_CHAR_SHEAR_ATTR          0x2050
  501.       #define PMERR_INV_CLIP_PATH_OPTIONS        0x2051
  502.       #define PMERR_INV_CODEPAGE                 0x2052
  503.       #define PMERR_INV_COLOR_ATTR               0x2053
  504.       #define PMERR_INV_COLOR_DATA               0x2054
  505.       #define PMERR_INV_COLOR_FORMAT             0x2055
  506.       #define PMERR_INV_COLOR_INDEX              0x2056
  507.       #define PMERR_INV_COLOR_OPTIONS            0x2057
  508.       #define PMERR_INV_COLOR_START_INDEX        0x2058
  509.       #define PMERR_INV_COORD_OFFSET             0x2059
  510.       #define PMERR_INV_COORD_SPACE              0x205A
  511.       #define PMERR_INV_COORDINATE               0x205B
  512.       #define PMERR_INV_CORRELATE_DEPTH          0x205C
  513.       #define PMERR_INV_CORRELATE_TYPE           0x205D
  514.       #define PMERR_INV_CURSOR_BITMAP            0x205E
  515.       #define PMERR_INV_DC_DATA                  0x205F
  516.       #define PMERR_INV_DC_TYPE                  0x2060
  517.       #define PMERR_INV_DEVICE_NAME              0x2061
  518.       #define PMERR_INV_DEV_MODES_OPTIONS        0x2062
  519.       #define PMERR_INV_DRAW_CONTROL             0x2063
  520.       #define PMERR_INV_DRAW_VALUE               0x2064
  521.       #define PMERR_INV_DRAWING_MODE             0x2065
  522.       #define PMERR_INV_DRIVER_DATA              0x2066
  523.       #define PMERR_INV_DRIVER_NAME              0x2067
  524.       #define PMERR_INV_DRAW_BORDER_OPTION       0x2068
  525.       #define PMERR_INV_EDIT_MODE                0x2069
  526.       #define PMERR_INV_ELEMENT_OFFSET           0x206A
  527.       #define PMERR_INV_ELEMENT_POINTER          0x206B
  528.       #define PMERR_INV_END_PATH_OPTIONS         0x206C
  529.       #define PMERR_INV_ESC_CODE                 0x206D
  530.       #define PMERR_INV_ESCAPE_DATA              0x206E
  531.       #define PMERR_INV_EXTENDED_LCID            0x206F
  532.       #define PMERR_INV_FILL_PATH_OPTIONS        0x2070
  533.       #define PMERR_INV_FIRST_CHAR               0x2071
  534.       #define PMERR_INV_FONT_ATTRS               0x2072
  535.       #define PMERR_INV_FONT_FILE_DATA           0x2073
  536.       #define PMERR_INV_FOR_THIS_DC_TYPE         0x2074
  537.       #define PMERR_INV_FORMAT_CONTROL           0x2075
  538.       #define PMERR_INV_FORMS_CODE               0x2076
  539.       #define PMERR_INV_FONTDEF                  0x2077
  540.       #define PMERR_INV_GEOM_LINE_WIDTH_ATTR     0x2078
  541.       #define PMERR_INV_GETDATA_CONTROL          0x2079
  542.       #define PMERR_INV_GRAPHICS_FIELD           0x207A
  543.       #define PMERR_INV_HBITMAP                  0x207B
  544.       #define PMERR_INV_HDC                      0x207C
  545.       #define PMERR_INV_HJOURNAL                 0x207D
  546.       #define PMERR_INV_HMF                      0x207E
  547.       #define PMERR_INV_HPS                      0x207F
  548.       #define PMERR_INV_HRGN                     0x2080
  549.       #define PMERR_INV_ID                       0x2081
  550.       #define PMERR_INV_IMAGE_DATA_LENGTH        0x2082
  551.       #define PMERR_INV_IMAGE_DIMENSION          0x2083
  552.       #define PMERR_INV_IMAGE_FORMAT             0x2084
  553.       #define PMERR_INV_IN_AREA                  0x2085
  554.       #define PMERR_INV_IN_CALLED_SEG            0x2086
  555.       #define PMERR_INV_IN_CURRENT_EDIT_MODE     0x2087
  556.       #define PMERR_INV_IN_DRAW_MODE             0x2088
  557.       #define PMERR_INV_IN_ELEMENT               0x2089
  558.       #define PMERR_INV_IN_IMAGE                 0x208A
  559.       #define PMERR_INV_IN_PATH                  0x208B
  560.       #define PMERR_INV_IN_RETAIN_MODE           0x208C
  561.       #define PMERR_INV_IN_SEG                   0x208D
  562.       #define PMERR_INV_IN_VECTOR_SYMBOL         0x208E
  563.       #define PMERR_INV_INFO_TABLE               0x208F
  564.       #define PMERR_INV_JOURNAL_OPTION           0x2090
  565.       #define PMERR_INV_KERNING_FLAGS            0x2091
  566.       #define PMERR_INV_LENGTH_OR_COUNT          0x2092
  567.       #define PMERR_INV_LINE_END_ATTR            0x2093
  568.       #define PMERR_INV_LINE_JOIN_ATTR           0x2094
  569.       #define PMERR_INV_LINE_TYPE_ATTR           0x2095
  570.       #define PMERR_INV_LINE_WIDTH_ATTR          0x2096
  571.       #define PMERR_INV_LOGICAL_ADDRESS          0x2097
  572.       #define PMERR_INV_MARKER_BOX_ATTR          0x2098
  573.       #define PMERR_INV_MARKER_SET_ATTR          0x2099
  574.       #define PMERR_INV_MARKER_SYMBOL_ATTR       0x209A
  575.       #define PMERR_INV_MATRIX_ELEMENT           0x209B
  576.       #define PMERR_INV_MAX_HITS                 0x209C
  577.       #define PMERR_INV_METAFILE                 0x209D
  578.       #define PMERR_INV_METAFILE_LENGTH          0x209E
  579.       #define PMERR_INV_METAFILE_OFFSET          0x209F
  580.       #define PMERR_INV_MICROPS_DRAW_CONTROL     0x20A0
  581.       #define PMERR_INV_MICROPS_FUNCTION         0x20A1
  582.       #define PMERR_INV_MICROPS_ORDER            0x20A2
  583.       #define PMERR_INV_MIX_ATTR                 0x20A3
  584.       #define PMERR_INV_MODE_FOR_OPEN_DYN        0x20A4
  585.       #define PMERR_INV_MODE_FOR_REOPEN_SEG      0x20A5
  586.       #define PMERR_INV_MODIFY_PATH_MODE         0x20A6
  587.       #define PMERR_INV_MULTIPLIER               0x20A7
  588.       #define PMERR_INV_NESTED_FIGURES           0x20A8
  589.       #define PMERR_INV_OR_INCOMPAT_OPTIONS      0x20A9
  590.       #define PMERR_INV_ORDER_LENGTH             0x20AA
  591.       #define PMERR_INV_ORDERING_PARM            0x20AB
  592.       #define PMERR_INV_OUTSIDE_DRAW_MODE        0x20AC
  593.       #define PMERR_INV_PAGE_VIEWPORT            0x20AD
  594.       #define PMERR_INV_PATH_ID                  0x20AE
  595.       #define PMERR_INV_PATH_MODE                0x20AF
  596.       #define PMERR_INV_PATTERN_ATTR             0x20B0
  597.       #define PMERR_INV_PATTERN_REF_PT_ATTR      0x20B1
  598.       #define PMERR_INV_PATTERN_SET_ATTR         0x20B2
  599.       #define PMERR_INV_PATTERN_SET_FONT         0x20B3
  600.       #define PMERR_INV_PICK_APERTURE_OPTION     0x20B4
  601.       #define PMERR_INV_PICK_APERTURE_POSN       0x20B5
  602.       #define PMERR_INV_PICK_APERTURE_SIZE       0x20B6
  603.       #define PMERR_INV_PICK_NUMBER              0x20B7
  604.       #define PMERR_INV_PLAY_METAFILE_OPTION     0x20B8
  605.       #define PMERR_INV_PRIMITIVE_TYPE           0x20B9
  606.       #define PMERR_INV_PS_SIZE                  0x20BA
  607.       #define PMERR_INV_PUTDATA_FORMAT           0x20BB
  608.       #define PMERR_INV_QUERY_ELEMENT_NO         0x20BC
  609.       #define PMERR_INV_RECT                     0x20BD
  610.       #define PMERR_INV_REGION_CONTROL           0x20BE
  611.       #define PMERR_INV_REGION_MIX_MODE          0x20BF
  612.       #define PMERR_INV_REPLACE_MODE_FUNC        0x20C0
  613.       #define PMERR_INV_RESERVED_FIELD           0x20C1
  614.       #define PMERR_INV_RESET_OPTIONS            0x20C2
  615.       #define PMERR_INV_RGBCOLOR                 0x20C3
  616.       #define PMERR_INV_SCAN_START               0x20C4
  617.       #define PMERR_INV_SEG_ATTR                 0x20C5
  618.       #define PMERR_INV_SEG_ATTR_VALUE           0x20C6
  619.       #define PMERR_INV_SEG_CH_LENGTH            0x20C7
  620.       #define PMERR_INV_SEG_NAME                 0x20C8
  621.       #define PMERR_INV_SEG_OFFSET               0x20C9
  622.       #define PMERR_INV_SETID                    0x20CA
  623.       #define PMERR_INV_SETID_TYPE               0x20CB
  624.       #define PMERR_INV_SET_VIEWPORT_OPTION      0x20CC
  625.       #define PMERR_INV_SHARPNESS_PARM           0x20CD
  626.       #define PMERR_INV_SOURCE_OFFSET            0x20CE
  627.       #define PMERR_INV_STOP_DRAW_VALUE          0x20CF
  628.       #define PMERR_INV_TRANSFORM_TYPE           0x20D0
  629.       #define PMERR_INV_USAGE_PARM               0x20D1
  630.       #define PMERR_INV_VIEWING_LIMITS           0x20D2
  631.       #define PMERR_JFILE_BUSY                   0x20D3
  632.       #define PMERR_JNL_FUNC_DATA_TOO_LONG       0x20D4
  633.       #define PMERR_KERNING_NOT_SUPPORTED        0x20D5
  634.       #define PMERR_LABEL_NOT_FOUND              0x20D6
  635.       #define PMERR_MATRIX_OVERFLOW              0x20D7
  636.       #define PMERR_METAFILE_INTERNAL_ERROR      0x20D8
  637.       #define PMERR_METAFILE_IN_USE              0x20D9
  638.       #define PMERR_METAFILE_LIMIT_EXCEEDED      0x20DA
  639.       #define PMERR_NAME_STACK_FULL              0x20DB
  640.       #define PMERR_NOT_CREATED_BY_DEVOPENDC     0x20DC
  641.       #define PMERR_NOT_IN_AREA                  0x20DD
  642.       #define PMERR_NOT_IN_DRAW_MODE             0x20DE
  643.       #define PMERR_NOT_IN_ELEMENT               0x20DF
  644.       #define PMERR_NOT_IN_IMAGE                 0x20E0
  645.       #define PMERR_NOT_IN_PATH                  0x20E1
  646.       #define PMERR_NOT_IN_RETAIN_MODE           0x20E2
  647.       #define PMERR_NOT_IN_SEG                   0x20E3
  648.       #define PMERR_NO_BITMAP_SELECTED           0x20E4
  649.       #define PMERR_NO_CURRENT_ELEMENT           0x20E5
  650.       #define PMERR_NO_CURRENT_SEG               0x20E6
  651.       #define PMERR_NO_METAFILE_RECORD_HANDLE    0x20E7
  652.       #define PMERR_ORDER_TOO_BIG                0x20E8
  653.       #define PMERR_OTHER_SET_ID_REFS            0x20E9
  654.       #define PMERR_OVERRAN_SEG                  0x20EA
  655.       #define PMERR_OWN_SET_ID_REFS              0x20EB
  656.       #define PMERR_PATH_INCOMPLETE              0x20EC
  657.       #define PMERR_PATH_LIMIT_EXCEEDED          0x20ED
  658.       #define PMERR_PATH_UNKNOWN                 0x20EE
  659.       #define PMERR_PEL_IS_CLIPPED               0x20EF
  660.       #define PMERR_PEL_NOT_AVAILABLE            0x20F0
  661.       #define PMERR_PRIMITIVE_STACK_EMPTY        0x20F1
  662.       #define PMERR_PROLOG_ERROR                 0x20F2
  663.       #define PMERR_PROLOG_SEG_ATTR_NOT_SET      0x20F3
  664.       #define PMERR_PS_BUSY                      0x20F4
  665.       #define PMERR_PS_IS_ASSOCIATED             0x20F5
  666.       #define PMERR_RAM_JNL_FILE_TOO_SMALL       0x20F6
  667.       #define PMERR_REALIZE_NOT_SUPPORTED        0x20F7
  668.       #define PMERR_REGION_IS_CLIP_REGION        0x20F8
  669.       #define PMERR_RESOURCE_DEPLETION           0x20F9
  670.       #define PMERR_SEG_AND_REFSEG_ARE_SAME      0x20FA
  671.       #define PMERR_SEG_CALL_RECURSIVE           0x20FB
  672.       #define PMERR_SEG_CALL_STACK_EMPTY         0x20FC
  673.       #define PMERR_SEG_CALL_STACK_FULL          0x20FD
  674.       #define PMERR_SEG_IS_CURRENT               0x20FE
  675.       #define PMERR_SEG_NOT_CHAINED              0x20FF
  676.       #define PMERR_SEG_NOT_FOUND                0x2100
  677.       #define PMERR_SEG_STORE_LIMIT_EXCEEDED     0x2101
  678.       #define PMERR_SETID_IN_USE                 0x2102
  679.       #define PMERR_SETID_NOT_FOUND              0x2103
  680.       #define PMERR_STARTDOC_NOT_ISSUED          0x2104
  681.       #define PMERR_STOP_DRAW_OCCURRED           0x2105
  682.       #define PMERR_TOO_MANY_METAFILES_IN_USE    0x2106
  683.       #define PMERR_TRUNCATED_ORDER              0x2107
  684.       #define PMERR_UNCHAINED_SEG_ZERO_INV       0x2108
  685.       #define PMERR_UNSUPPORTED_ATTR             0x2109
  686.       #define PMERR_UNSUPPORTED_ATTR_VALUE       0x210A
  687.       #define PMERR_ENDDOC_NOT_ISSUED            0x210B
  688.       #define PMERR_PS_NOT_ASSOCIATED            0x210C
  689.       #define PMERR_INV_FLOOD_FILL_OPTIONS       0x210D
  690.       #define PMERR_INV_FACENAME                 0x210E
  691.       #define PMERR_PALETTE_SELECTED             0x210F
  692.       #define PMERR_NO_PALETTE_SELECTED          0x2110
  693.       #define PMERR_INV_HPAL                     0x2111
  694.       #define PMERR_PALETTE_BUSY                 0x2112
  695.       #define PMERR_START_POINT_CLIPPED          0x2113
  696.       #define PMERR_NO_FILL                      0x2114
  697.       #define PMERR_INV_FACENAMEDESC             0x2115
  698.       #define PMERR_INV_BITMAP_DATA              0x2116
  699.       #define PMERR_INV_CHAR_ALIGN_ATTR          0x2117
  700.       #define PMERR_INV_HFONT                    0x2118
  701.       #define PMERR_HFONT_IS_SELECTED            0x2119
  702.       #define PMERR_DRVR_NOT_SUPPORTED           0x2120
  703.       #define PMERR_INV_INKPS_FUNCTION           0x2121
  704.       
  705.    #endif /* error codes already included */
  706. #endif /* include error codes */
  707.  
  708. /****************************************************************************
  709. *** Device Manager error codes
  710. ****************************************************************************/
  711.  
  712. /* None yet */
  713.  
  714. /****************************************************************************
  715. *** Spooler error codes
  716. ****************************************************************************/
  717. #ifdef INCL_SPLERRORS
  718.    #ifndef INCL_SPLERRORS_INCL
  719.       /* XLATOFF */
  720.       #define INCL_SPLERRORS_INCL
  721.       /* XLATON */
  722.       
  723.       #define PMERR_SPL_DRIVER_ERROR             0x4001
  724.       #define PMERR_SPL_DEVICE_ERROR             0x4002
  725.       #define PMERR_SPL_DEVICE_NOT_INSTALLED     0x4003
  726.       #define PMERR_SPL_QUEUE_ERROR              0x4004
  727.       #define PMERR_SPL_INV_HSPL                 0x4005
  728.       #define PMERR_SPL_NO_DISK_SPACE            0x4006
  729.       #define PMERR_SPL_NO_MEMORY                0x4007
  730.       #define PMERR_SPL_PRINT_ABORT              0x4008
  731.       #define PMERR_SPL_SPOOLER_NOT_INSTALLED    0x4009
  732.       #define PMERR_SPL_INV_FORMS_CODE           0x400A
  733.       #define PMERR_SPL_INV_PRIORITY             0x400B
  734.       #define PMERR_SPL_NO_FREE_JOB_ID           0x400C
  735.       #define PMERR_SPL_NO_DATA                  0x400D
  736.       #define PMERR_SPL_INV_TOKEN                0x400E
  737.       #define PMERR_SPL_INV_DATATYPE             0x400F
  738.       #define PMERR_SPL_PROCESSOR_ERROR          0x4010
  739.       #define PMERR_SPL_INV_JOB_ID               0x4011
  740.       #define PMERR_SPL_JOB_NOT_PRINTING         0x4012
  741.       #define PMERR_SPL_JOB_PRINTING             0x4013
  742.       #define PMERR_SPL_QUEUE_ALREADY_EXISTS     0x4014
  743.       #define PMERR_SPL_INV_QUEUE_NAME           0x4015
  744.       #define PMERR_SPL_QUEUE_NOT_EMPTY          0x4016
  745.       #define PMERR_SPL_DEVICE_ALREADY_EXISTS    0x4017
  746.       #define PMERR_SPL_DEVICE_LIMIT_REACHED     0x4018
  747.       #define PMERR_SPL_STATUS_STRING_TRUNC      0x4019
  748.       #define PMERR_SPL_INV_LENGTH_OR_COUNT      0x401A
  749.       #define PMERR_SPL_FILE_NOT_FOUND           0x401B
  750.       #define PMERR_SPL_CANNOT_OPEN_FILE         0x401C
  751.       #define PMERR_SPL_DRIVER_NOT_INSTALLED     0x401D
  752.       #define PMERR_SPL_INV_PROCESSOR_DATTYPE    0x401E
  753.       #define PMERR_SPL_INV_DRIVER_DATATYPE      0x401F
  754.       #define PMERR_SPL_PROCESSOR_NOT_INST       0x4020
  755.       #define PMERR_SPL_NO_SUCH_LOG_ADDRESS      0x4021
  756.       #define PMERR_SPL_PRINTER_NOT_FOUND        0x4022
  757.       #define PMERR_SPL_DD_NOT_FOUND             0x4023
  758.       #define PMERR_SPL_QUEUE_NOT_FOUND          0x4024
  759.       #define PMERR_SPL_MANY_QUEUES_ASSOC        0x4025
  760.       #define PMERR_SPL_NO_QUEUES_ASSOCIATED     0x4026
  761.       #define PMERR_SPL_INI_FILE_ERROR           0x4027
  762.       #define PMERR_SPL_NO_DEFAULT_QUEUE         0x4028
  763.       #define PMERR_SPL_NO_CURRENT_FORMS_CODE    0x4029
  764.       #define PMERR_SPL_NOT_AUTHORISED           0x402A
  765.       #define PMERR_SPL_TEMP_NETWORK_ERROR       0x402B
  766.       #define PMERR_SPL_HARD_NETWORK_ERROR       0x402C
  767.       #define PMERR_DEL_NOT_ALLOWED              0x402D
  768.       #define PMERR_CANNOT_DEL_QP_REF            0x402E
  769.       #define PMERR_CANNOT_DEL_QNAME_REF         0x402F
  770.       #define PMERR_CANNOT_DEL_PRINTER_DD_REF    0x4030
  771.       #define PMERR_CANNOT_DEL_PRN_NAME_REF      0x4031
  772.       #define PMERR_CANNOT_DEL_PRN_ADDR_REF      0x4032
  773.       #define PMERR_SPOOLER_QP_NOT_DEFINED       0x4033
  774.       #define PMERR_PRN_NAME_NOT_DEFINED         0x4034
  775.       #define PMERR_PRN_ADDR_NOT_DEFINED         0x4035
  776.       #define PMERR_PRINTER_DD_NOT_DEFINED       0x4036
  777.       #define PMERR_PRINTER_QUEUE_NOT_DEFINED    0x4037
  778.       #define PMERR_PRN_ADDR_IN_USE              0x4038
  779.       #define PMERR_SPL_TOO_MANY_OPEN_FILES      0x4039
  780.       #define PMERR_SPL_CP_NOT_REQD              0x403A
  781.       #define PMERR_SPL_PORT_SHUTDOWN            0x403B
  782.       #define PMERR_SPL_NOT_HANDLED              0x403C
  783.       #define PMERR_SPL_CNV_NOT_INIT             0x403D
  784.       #define PMERR_SPL_INIT_IN_PROGRESS         0x403E
  785.       #define PMERR_SPL_TYPE_NOT_AVAIL           0x403F
  786.       #define PMERR_UNABLE_TO_CLOSE_DEVICE       0x4040
  787.       #define PMERR_SPL_SESSION_TERM             0x4041
  788.       #define PMERR_SPL_NOT_REGISTERED           0x4042
  789.       
  790.       #define PMERR_SPL_ERROR_1          ( SPLERR_BASE + 4001 )
  791.       #define PMERR_SPL_ERROR_2          ( SPLERR_BASE + 4002 )
  792.       #define PMERR_SPL_ERROR_3          ( SPLERR_BASE + 4003 )
  793.       #define PMERR_SPL_ERROR_4          ( SPLERR_BASE + 4004 )
  794.       #define PMERR_SPL_ERROR_5          ( SPLERR_BASE + 4005 )
  795.       #define PMERR_SPL_ERROR_6          ( SPLERR_BASE + 4006 )
  796.       #define PMERR_SPL_ERROR_7          ( SPLERR_BASE + 4007 )
  797.       #define PMERR_SPL_ERROR_8          ( SPLERR_BASE + 4008 )
  798.       #define PMERR_SPL_ERROR_9          ( SPLERR_BASE + 4009 )
  799.       #define PMERR_SPL_ERROR_10         ( SPLERR_BASE + 4010 )
  800.       #define PMERR_SPL_ERROR_11         ( SPLERR_BASE + 4011 )
  801.       #define PMERR_SPL_ERROR_12         ( SPLERR_BASE + 4012 )
  802.       #define PMERR_SPL_ERROR_13         ( SPLERR_BASE + 4013 )
  803.       #define PMERR_SPL_ERROR_14         ( SPLERR_BASE + 4014 )
  804.       #define PMERR_SPL_ERROR_15         ( SPLERR_BASE + 4015 )
  805.       #define PMERR_SPL_ERROR_16         ( SPLERR_BASE + 4016 )
  806.       #define PMERR_SPL_ERROR_17         ( SPLERR_BASE + 4017 )
  807.       #define PMERR_SPL_ERROR_18         ( SPLERR_BASE + 4018 )
  808.       #define PMERR_SPL_ERROR_19         ( SPLERR_BASE + 4019 )
  809.       #define PMERR_SPL_ERROR_20         ( SPLERR_BASE + 4020 )
  810.       #define PMERR_SPL_ERROR_21         ( SPLERR_BASE + 4021 )
  811.       #define PMERR_SPL_ERROR_22         ( SPLERR_BASE + 4022 )
  812.       #define PMERR_SPL_ERROR_23         ( SPLERR_BASE + 4023 )
  813.       #define PMERR_SPL_ERROR_24         ( SPLERR_BASE + 4024 )
  814.       #define PMERR_SPL_ERROR_25         ( SPLERR_BASE + 4025 )
  815.       #define PMERR_SPL_ERROR_26         ( SPLERR_BASE + 4026 )
  816.       #define PMERR_SPL_ERROR_27         ( SPLERR_BASE + 4027 )
  817.       #define PMERR_SPL_ERROR_28         ( SPLERR_BASE + 4028 )
  818.       #define PMERR_SPL_ERROR_29         ( SPLERR_BASE + 4029 )
  819.       #define PMERR_SPL_ERROR_30         ( SPLERR_BASE + 4030 )
  820.       #define PMERR_SPL_ERROR_31         ( SPLERR_BASE + 4031 )
  821.       #define PMERR_SPL_ERROR_32         ( SPLERR_BASE + 4032 )
  822.       #define PMERR_SPL_ERROR_33         ( SPLERR_BASE + 4033 )
  823.       #define PMERR_SPL_ERROR_34         ( SPLERR_BASE + 4034 )
  824.       #define PMERR_SPL_ERROR_35         ( SPLERR_BASE + 4035 )
  825.       #define PMERR_SPL_ERROR_36         ( SPLERR_BASE + 4036 )
  826.       #define PMERR_SPL_ERROR_37         ( SPLERR_BASE + 4037 )
  827.       #define PMERR_SPL_ERROR_38         ( SPLERR_BASE + 4038 )
  828.       #define PMERR_SPL_ERROR_39         ( SPLERR_BASE + 4039 )
  829.       #define PMERR_SPL_ERROR_40         ( SPLERR_BASE + 4040 )
  830.       
  831.       #define PMERR_SPLMSGBOX_INFO_CAPTION    ( SPLERR_BASE + 4041 )
  832.       #define PMERR_SPLMSGBOX_WARNING_CAPTION ( SPLERR_BASE + 4042 )
  833.       #define PMERR_SPLMSGBOX_ERROR_CAPTION   ( SPLERR_BASE + 4043 )
  834.       #define PMERR_SPLMSGBOX_SEVERE_CAPTION  ( SPLERR_BASE + 4044 )
  835.       
  836.       #define PMERR_SPLMSGBOX_JOB_DETAILS     ( SPLERR_BASE + 4045 )
  837.       
  838.       #define PMERR_SPLMSGBOX_ERROR_ACTION    ( SPLERR_BASE + 4046 )
  839.       #define PMERR_SPLMSGBOX_SEVERE_ACTION   ( SPLERR_BASE + 4047 )
  840.       
  841.       #define PMERR_SPLMSGBOX_BIT_0_TEXT      ( SPLERR_BASE + 4048 )
  842.       #define PMERR_SPLMSGBOX_BIT_1_TEXT      ( SPLERR_BASE + 4049 )
  843.       #define PMERR_SPLMSGBOX_BIT_2_TEXT      ( SPLERR_BASE + 4050 )
  844.       #define PMERR_SPLMSGBOX_BIT_3_TEXT      ( SPLERR_BASE + 4051 )
  845.       #define PMERR_SPLMSGBOX_BIT_4_TEXT      ( SPLERR_BASE + 4052 )
  846.       #define PMERR_SPLMSGBOX_BIT_5_TEXT      ( SPLERR_BASE + 4053 )
  847.       #define PMERR_SPLMSGBOX_BIT_15_TEXT     ( SPLERR_BASE + 4054 )
  848.       #define PMERR_SPL_NOPATHBUFFER          ( SPLERR_BASE + 4055 )
  849.       
  850.       #define PMERR_SPL_ALREADY_INITIALISED   ( SPLERR_BASE + 4093 )
  851.       #define PMERR_SPL_ERROR                 ( SPLERR_BASE + 4095 )
  852.       
  853.       
  854.       #define NERR_BASE       2100
  855.       #define NERR_NetNotStarted      (NERR_BASE+2)   /* The NETWKSTA.SYS workstation driver isn't installed. */
  856.       #define NERR_RedirectedPath     (NERR_BASE+17)  /* The operation is invalid on a redirected resource. */
  857.       #define NERR_BufTooSmall        (NERR_BASE+23)  /* The API return buffer is too small. */
  858.       #define NERR_InvalidAPI         (NERR_BASE+42)  /* The requested API isn't supported on the remote server. */
  859.       #define NERR_QNotFound          (NERR_BASE+50)  /* The printer queue does not exist. */
  860.       #define NERR_JobNotFound        (NERR_BASE+51)  /* The print job does not exist. */
  861.       #define NERR_DestNotFound       (NERR_BASE+52)  /* The printer destination cannot be found. */
  862.       #define NERR_DestExists         (NERR_BASE+53)  /* The printer destination already exists. */
  863.       #define NERR_QExists            (NERR_BASE+54)  /* The printer queue already exists. */
  864.       #define NERR_QNoRoom            (NERR_BASE+55)  /* No more printer queues can be added. */
  865.       #define NERR_JobNoRoom          (NERR_BASE+56)  /* No more print jobs can be added.  */
  866.       #define NERR_DestNoRoom         (NERR_BASE+57)  /* No more printer destinations can be added. */
  867.       #define NERR_DestIdle           (NERR_BASE+58)  /* This printer destination is idle and cannot accept control operations. */
  868.       #define NERR_DestInvalidOp      (NERR_BASE+59)  /* This printer destination request contains an invalid control function. */
  869.       #define NERR_SpoolerNotLoaded   (NERR_BASE+61)  /* The spooler is not running. */
  870.       #define NERR_DestInvalidState   (NERR_BASE+62)  /* This operation cannot be performed on the print destination in its current state. */
  871.       #define NERR_JobInvalidState    (NERR_BASE+64)  /* This operation cannot be performed on the print job in its current state. */
  872.       #define NERR_SpoolNoMemory      (NERR_BASE+65)  /* A spooler memory allocation failure occurred. */
  873.       #define NERR_DriverNotFound     (NERR_BASE+66)  /* The device driver does not exist. */
  874.       #define NERR_DataTypeInvalid    (NERR_BASE+67)  /* The datatype is not supported by the processor. */
  875.       #define NERR_ProcNotFound       (NERR_BASE+68)  /* The print processor is not installed. */
  876.       #define NERR_BadDev             (NERR_BASE+241) /* The requested device is invalid. */
  877.       #define NERR_CommDevInUse       (NERR_BASE+243) /* This device is already in use as a communications device. */
  878.       #define NERR_InvalidComputer   (NERR_BASE+251) /* This computername is invalid. */
  879.       #define NERR_OpenFiles          (NERR_BASE+301) /* There are open files on the connection.    */
  880.       #define NERR_LocalDrive         (NERR_BASE+305) /* The drive letter is in use locally. */
  881.       
  882.    #endif /* error codes already included */
  883. #endif /* include error codes */
  884.  
  885. /****************************************************************************
  886. *** Picture Utilities error codes
  887. ****************************************************************************/
  888. #ifdef INCL_PICERRORS
  889.    #ifndef INCL_PICERRORS_INCL
  890.       /* XLATOFF */
  891.       #define INCL_PICERRORS_INCL
  892.       /* XLATON */
  893.       
  894.       #define PMERR_INV_TYPE         0x5001
  895.       #define PMERR_INV_CONV         0x5002
  896.       #define PMERR_INV_SEGLEN       0x5003
  897.       #define PMERR_DUP_SEGNAME      0x5004
  898.       #define PMERR_INV_XFORM        0x5005
  899.       #define PMERR_INV_VIEWLIM      0x5006
  900.       #define PMERR_INV_3DCOORD      0x5007
  901.       #define PMERR_SMB_OVFLOW       0x5008
  902.       #define PMERR_SEG_OVFLOW       0x5009
  903.       #define PMERR_PIC_DUP_FILENAME 0x5010
  904.       
  905.    #endif /* error codes already included */
  906. #endif /* include error codes */
  907.  
  908.  
  909. /****************************************************************************
  910. *    numbers from 0x5100  to 0x5fff are reserved.
  911. ****************************************************************************/
  912.  
  913.  
  914. /* NOINC */
  915. #ifdef __cplusplus
  916.         }
  917. #endif
  918. #if __IBMC__ || __IBMCPP__
  919.    #pragma info( none )
  920.    #ifndef __CHKHDR__
  921.       #pragma info( restore )
  922.    #endif
  923.    #pragma info( restore )
  924. #endif
  925. /* INC */
  926.  
  927. /**************************** end of file **********************************/
  928.