home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
program3
/
pmerr.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-11-23
|
32KB
|
761 lines
{*****************************************************************************\
*
* Module Name: PMERR.H
*
* OS/2 Presentation Manager public error codes.
*
* They all have a definition commencing PMERR_
*
* This file has been constructed to bring together all the error codes
* into one place. It has been made up of error codes formerly held in
* PMGPI.H, PMWIN.H, PMSPL.H AND PMSHL.H.
*
* Also, some error codes that were put into a private spooler header
* file have been made public here.
*
* Where the error codes in each public file were defined they have
* been replaced with a "#include <pmerr.h>" to pick up the error codes.
*
* Note ! It could have been possible for an application to use the
* following sort of header :-
* INCL_ERROR
* #include <os2.h> - pick up GPI, WIN and SHL errors
* #include <pmspl.h> - pick up spooler errors
*
* With this new file, error codes from PMWIN, for example, would be
* doubly defined. Hence each error code section is protected by a
* conditional include to prevent this.
*
* Copyright (c) International Business Machines Corporation 1981, 1988-1990
*
\*****************************************************************************}
{| Version: 1.00
| Original translation: Peter Sawatzki ps
| Contributing:
| Peter Sawatzki ps
|
| change history:
| Date: Ver: Author:
| 11/11/93 1.00 ps original translation by ps
}
Unit PmErr;
Interface
Uses
Os2Def;
Const
{*********************************************************************\
*
* Window Manager error codes
*
* 1.) PMWIN error codes
*
\*********************************************************************}
PMERR_INVALID_HWND = $1001;
PMERR_INVALID_HMQ = $1002;
PMERR_PARAMETER_OUT_OF_RANGE = $1003;
PMERR_WINDOW_LOCK_UNDERFLOW = $1004;
PMERR_WINDOW_LOCK_OVERFLOW = $1005;
PMERR_BAD_WINDOW_LOCK_COUNT = $1006;
PMERR_WINDOW_NOT_LOCKED = $1007;
PMERR_INVALID_SELECTOR = $1008;
PMERR_CALL_FROM_WRONG_THREAD = $1009;
PMERR_RESOURCE_NOT_FOUND = $100A;
PMERR_INVALID_STRING_PARM = $100B;
PMERR_INVALID_HHEAP = $100C;
PMERR_INVALID_HEAP_POINTER = $100D;
PMERR_INVALID_HEAP_SIZE_PARM = $100E;
PMERR_INVALID_HEAP_SIZE = $100F;
PMERR_INVALID_HEAP_SIZE_WORD = $1010;
PMERR_HEAP_OUT_OF_MEMORY = $1011;
PMERR_HEAP_MAX_SIZE_REACHED = $1012;
PMERR_INVALID_HATOMTBL = $1013;
PMERR_INVALID_ATOM = $1014;
PMERR_INVALID_ATOM_NAME = $1015;
PMERR_INVALID_INTEGER_ATOM = $1016;
PMERR_ATOM_NAME_NOT_FOUND = $1017;
PMERR_QUEUE_TOO_LARGE = $1018;
PMERR_INVALID_FLAG = $1019;
PMERR_INVALID_HACCEL = $101A;
PMERR_INVALID_HPTR = $101B;
PMERR_INVALID_HENUM = $101C;
PMERR_INVALID_SRC_CODEPAGE = $101D;
PMERR_INVALID_DST_CODEPAGE = $101E;
{ These are not real error codes, but just used to access special }
{ error message strings used by WinGetErrorInfo to format an error }
{ message. }
PMERR_UNKNOWN_COMPONENT_ID = $101f;
PMERR_UNKNOWN_ERROR_CODE = $1020;
PMERR_SEVERITY_LEVELS = $1021;
{ 0x1022 - 0x1033, 0x1035, 0x104B - 0x104C used elsewhere }
PMERR_INVALID_RESOURCE_FORMAT = $1034;
PMERR_NO_MSG_QUEUE = $1036;
PMERR_WIN_DEBUGMSG = $1037;
PMERR_QUEUE_FULL = $1038;
PMERR_LIBRARY_LOAD_FAILED = $1039;
PMERR_PROCEDURE_LOAD_FAILED = $103A;
PMERR_LIBRARY_DELETE_FAILED = $103B;
PMERR_PROCEDURE_DELETE_FAILED = $103C;
PMERR_ARRAY_TOO_LARGE = $103D;
PMERR_ARRAY_TOO_SMALL = $103E;
PMERR_DATATYPE_ENTRY_BAD_INDEX = $103F;
PMERR_DATATYPE_ENTRY_CTL_BAD = $1040;
PMERR_DATATYPE_ENTRY_CTL_MISS = $1041;
PMERR_DATATYPE_ENTRY_INVALID = $1042;
PMERR_DATATYPE_ENTRY_NOT_NUM = $1043;
PMERR_DATATYPE_ENTRY_NOT_OFF = $1044;
PMERR_DATATYPE_INVALID = $1045;
PMERR_DATATYPE_NOT_UNIQUE = $1046;
PMERR_DATATYPE_TOO_LONG = $1047;
PMERR_DATATYPE_TOO_SMALL = $1048;
PMERR_DIRECTION_INVALID = $1049;
PMERR_INVALID_HAB = $104A;
PMERR_INVALID_HSTRUCT = $104D;
PMERR_LENGTH_TOO_SMALL = $104E;
PMERR_MSGID_TOO_SMALL = $104F;
PMERR_NO_HANDLE_ALLOC = $1050;
PMERR_NOT_IN_A_PM_SESSION = $1051;
PMERR_MSG_QUEUE_ALREADY_EXISTS = $1052;
{*********************************************************************\
*
* Window Manager error codes
*
* 2.) PMSHL error codes
*
\*********************************************************************}
PMERR_INVALID_PIB = $1101;
PMERR_INSUFF_SPACE_TO_ADD = $1102;
PMERR_INVALID_GROUP_HANDLE = $1103;
PMERR_DUPLICATE_TITLE = $1104;
PMERR_INVALID_TITLE = $1105;
PMERR_HANDLE_NOT_IN_GROUP = $1107;
PMERR_INVALID_TARGET_HANDLE = $1106;
PMERR_INVALID_PATH_STATEMENT = $1108;
PMERR_NO_PROGRAM_FOUND = $1109;
PMERR_INVALID_BUFFER_SIZE = $110A;
PMERR_BUFFER_TOO_SMALL = $110B;
PMERR_PL_INITIALISATION_FAIL = $110C;
PMERR_CANT_DESTROY_SYS_GROUP = $110D;
PMERR_INVALID_TYPE_CHANGE = $110E;
PMERR_INVALID_PROGRAM_HANDLE = $110F;
PMERR_NOT_CURRENT_PL_VERSION = $1110;
PMERR_INVALID_CIRCULAR_REF = $1111;
PMERR_MEMORY_ALLOCATION_ERR = $1112;
PMERR_MEMORY_DEALLOCATION_ERR = $1113;
PMERR_TASK_HEADER_TOO_BIG = $1114;
PMERR_INVALID_INI_FILE_HANDLE = $1115;
PMERR_MEMORY_SHARE = $1116;
PMERR_OPEN_QUEUE = $1117;
PMERR_CREATE_QUEUE = $1118;
PMERR_WRITE_QUEUE = $1119;
PMERR_READ_QUEUE = $111A;
PMERR_CALL_NOT_EXECUTED = $111B;
PMERR_UNKNOWN_APIPKT = $111C;
PMERR_INITHREAD_EXISTS = $111D;
PMERR_CREATE_THREAD = $111E;
PMERR_NO_HK_PROFILE_INSTALLED = $111F;
PMERR_INVALID_DIRECTORY = $1120;
PMERR_WILDCARD_IN_FILENAME = $1121;
PMERR_FILENAME_BUFFER_FULL = $1122;
PMERR_FILENAME_TOO_LONG = $1123;
PMERR_INI_FILE_IS_SYS_OR_USER = $1124;
PMERR_BROADCAST_PLMSG = $1125;
PMERR_190_INIT_DONE = $1126;
PMERR_HMOD_FOR_PMSHAPI = $1127;
PMERR_SET_HK_PROFILE = $1128;
PMERR_API_NOT_ALLOWED = $1129;
PMERR_INI_STILL_OPEN = $112A;
PMERR_PROGDETAILS_NOT_IN_INI = $112B;
PMERR_PIBSTRUCT_NOT_IN_INI = $112C;
PMERR_INVALID_DISKPROGDETAILS = $112D;
PMERR_PROGDETAILS_READ_FAILURE = $112E;
PMERR_PROGDETAILS_WRITE_FAILURE= $112F;
PMERR_PROGDETAILS_QSIZE_FAILURE= $1130;
PMERR_INVALID_PROGDETAILS = $1131;
PMERR_SHEPROFILEHOOK_NOT_FOUND = $1132;
PMERR_190PLCONVERTED = $1133;
PMERR_FAILED_TO_CONVERT_INI_PL = $1134;
PMERR_PMSHAPI_NOT_INITIALISED = $1135;
PMERR_INVALID_SHELL_API_HOOK_ID= $1136;
PMERR_DOS_ERROR = $1200;
PMERR_NO_SPACE = $1201;
PMERR_INVALID_SWITCH_HANDLE = $1202;
PMERR_NO_HANDLE = $1203;
PMERR_INVALID_PROCESS_ID = $1204;
PMERR_NOT_SHELL = $1205;
PMERR_INVALID_WINDOW = $1206;
PMERR_INVALID_POST_MSG = $1207;
PMERR_INVALID_PARAMETERS = $1208;
PMERR_INVALID_PROGRAM_TYPE = $1209;
PMERR_NOT_EXTENDED_FOCUS = $120A;
PMERR_INVALID_SESSION_ID = $120B;
PMERR_SMG_INVALID_ICON_FILE = $120C;
PMERR_SMG_ICON_NOT_CREATED = $120D;
PMERR_SHL_DEBUG = $120E;
PMERR_OPENING_INI_FILE = $1301;
PMERR_INI_FILE_CORRUPT = $1302;
PMERR_INVALID_PARM = $1303;
PMERR_NOT_IN_IDX = $1304;