home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / PMERR.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  49KB  |  930 lines

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