1 {
2      File:       CarbonCore/MacErrors.h
3 
4      Contains:   OSErr codes.
5                  The contents of this header file are deprecated.
6 
7      Copyright:  � 1985-2011 by Apple Inc. All rights reserved.
8 }
9 {     Pascal Translation Updated:  Gale R Paeper, <gpaeper@empirenet.com>, June 2018 }
10 
11 {
12     Modified for use with Free Pascal
13     Version 308
14     Please report any bugs to <gpc@microbizz.nl>
15 }
16 
17 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
18 {$mode macpas}
19 {$modeswitch cblocks}
20 {$packenum 1}
21 {$macro on}
22 {$inline on}
23 {$calling mwpascal}
24 
25 unit MacErrors;
26 interface
27 {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
28 {$setc GAP_INTERFACES_VERSION := $0308}
29 
30 {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
31     {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
32 {$endc}
33 
34 {$ifc defined CPUPOWERPC and defined CPUI386}
35 	{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
36 {$endc}
37 {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
38 	{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
39 {$endc}
40 
41 {$ifc not defined __ppc__ and defined CPUPOWERPC32}
42 	{$setc __ppc__ := 1}
43 {$elsec}
44 	{$setc __ppc__ := 0}
45 {$endc}
46 {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
47 	{$setc __ppc64__ := 1}
48 {$elsec}
49 	{$setc __ppc64__ := 0}
50 {$endc}
51 {$ifc not defined __i386__ and defined CPUI386}
52 	{$setc __i386__ := 1}
53 {$elsec}
54 	{$setc __i386__ := 0}
55 {$endc}
56 {$ifc not defined __x86_64__ and defined CPUX86_64}
57 	{$setc __x86_64__ := 1}
58 {$elsec}
59 	{$setc __x86_64__ := 0}
60 {$endc}
61 {$ifc not defined __arm__ and defined CPUARM}
62 	{$setc __arm__ := 1}
63 {$elsec}
64 	{$setc __arm__ := 0}
65 {$endc}
66 {$ifc not defined __arm64__ and defined CPUAARCH64}
67   {$setc __arm64__ := 1}
68 {$elsec}
69   {$setc __arm64__ := 0}
70 {$endc}
71 
72 {$ifc defined cpu64}
73   {$setc __LP64__ := 1}
74 {$elsec}
75   {$setc __LP64__ := 0}
76 {$endc}
77 
78 
79 {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
80 	{$error Conflicting definitions for __ppc__ and __i386__}
81 {$endc}
82 
83 {$ifc defined __ppc__ and __ppc__}
84 	{$setc TARGET_CPU_PPC := TRUE}
85 	{$setc TARGET_CPU_PPC64 := FALSE}
86 	{$setc TARGET_CPU_X86 := FALSE}
87 	{$setc TARGET_CPU_X86_64 := FALSE}
88 	{$setc TARGET_CPU_ARM := FALSE}
89 	{$setc TARGET_CPU_ARM64 := FALSE}
90 	{$setc TARGET_OS_MAC := TRUE}
91 	{$setc TARGET_OS_IPHONE := FALSE}
92 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
93 	{$setc TARGET_OS_EMBEDDED := FALSE}
94 {$elifc defined __ppc64__ and __ppc64__}
95 	{$setc TARGET_CPU_PPC := FALSE}
96 	{$setc TARGET_CPU_PPC64 := TRUE}
97 	{$setc TARGET_CPU_X86 := FALSE}
98 	{$setc TARGET_CPU_X86_64 := FALSE}
99 	{$setc TARGET_CPU_ARM := FALSE}
100 	{$setc TARGET_CPU_ARM64 := FALSE}
101 	{$setc TARGET_OS_MAC := TRUE}
102 	{$setc TARGET_OS_IPHONE := FALSE}
103 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
104 	{$setc TARGET_OS_EMBEDDED := FALSE}
105 {$elifc defined __i386__ and __i386__}
106 	{$setc TARGET_CPU_PPC := FALSE}
107 	{$setc TARGET_CPU_PPC64 := FALSE}
108 	{$setc TARGET_CPU_X86 := TRUE}
109 	{$setc TARGET_CPU_X86_64 := FALSE}
110 	{$setc TARGET_CPU_ARM := FALSE}
111 	{$setc TARGET_CPU_ARM64 := FALSE}
112 {$ifc defined iphonesim}
113  	{$setc TARGET_OS_MAC := FALSE}
114 	{$setc TARGET_OS_IPHONE := TRUE}
115 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
116 {$elsec}
117 	{$setc TARGET_OS_MAC := TRUE}
118 	{$setc TARGET_OS_IPHONE := FALSE}
119 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
120 {$endc}
121 	{$setc TARGET_OS_EMBEDDED := FALSE}
122 {$elifc defined __x86_64__ and __x86_64__}
123 	{$setc TARGET_CPU_PPC := FALSE}
124 	{$setc TARGET_CPU_PPC64 := FALSE}
125 	{$setc TARGET_CPU_X86 := FALSE}
126 	{$setc TARGET_CPU_X86_64 := TRUE}
127 	{$setc TARGET_CPU_ARM := FALSE}
128 	{$setc TARGET_CPU_ARM64 := FALSE}
129 {$ifc defined iphonesim}
130  	{$setc TARGET_OS_MAC := FALSE}
131 	{$setc TARGET_OS_IPHONE := TRUE}
132 	{$setc TARGET_IPHONE_SIMULATOR := TRUE}
133 {$elsec}
134 	{$setc TARGET_OS_MAC := TRUE}
135 	{$setc TARGET_OS_IPHONE := FALSE}
136 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
137 {$endc}
138 	{$setc TARGET_OS_EMBEDDED := FALSE}
139 {$elifc defined __arm__ and __arm__}
140 	{$setc TARGET_CPU_PPC := FALSE}
141 	{$setc TARGET_CPU_PPC64 := FALSE}
142 	{$setc TARGET_CPU_X86 := FALSE}
143 	{$setc TARGET_CPU_X86_64 := FALSE}
144 	{$setc TARGET_CPU_ARM := TRUE}
145 	{$setc TARGET_CPU_ARM64 := FALSE}
146 	{$setc TARGET_OS_MAC := FALSE}
147 	{$setc TARGET_OS_IPHONE := TRUE}
148 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
149 	{$setc TARGET_OS_EMBEDDED := TRUE}
150 {$elifc defined __arm64__ and __arm64__}
151 	{$setc TARGET_CPU_PPC := FALSE}
152 	{$setc TARGET_CPU_PPC64 := FALSE}
153 	{$setc TARGET_CPU_X86 := FALSE}
154 	{$setc TARGET_CPU_X86_64 := FALSE}
155 	{$setc TARGET_CPU_ARM := FALSE}
156 	{$setc TARGET_CPU_ARM64 := TRUE}
157 {$ifc defined ios}
158 	{$setc TARGET_OS_MAC := FALSE}
159 	{$setc TARGET_OS_IPHONE := TRUE}
160 	{$setc TARGET_OS_EMBEDDED := TRUE}
161 {$elsec}
162 	{$setc TARGET_OS_MAC := TRUE}
163 	{$setc TARGET_OS_IPHONE := FALSE}
164 	{$setc TARGET_OS_EMBEDDED := FALSE}
165 {$endc}
166 	{$setc TARGET_IPHONE_SIMULATOR := FALSE}
167 {$elsec}
168 	{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
169 {$endc}
170 
171 {$ifc defined __LP64__ and __LP64__ }
172   {$setc TARGET_CPU_64 := TRUE}
173 {$elsec}
174   {$setc TARGET_CPU_64 := FALSE}
175 {$endc}
176 
177 {$ifc defined FPC_BIG_ENDIAN}
178 	{$setc TARGET_RT_BIG_ENDIAN := TRUE}
179 	{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
180 {$elifc defined FPC_LITTLE_ENDIAN}
181 	{$setc TARGET_RT_BIG_ENDIAN := FALSE}
182 	{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
183 {$elsec}
184 	{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
185 {$endc}
186 {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
187 {$setc CALL_NOT_IN_CARBON := FALSE}
188 {$setc OLDROUTINENAMES := FALSE}
189 {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
190 {$setc OPAQUE_UPP_TYPES := TRUE}
191 {$setc OTCARBONAPPLICATION := TRUE}
192 {$setc OTKERNEL := FALSE}
193 {$setc PM_USE_SESSION_APIS := TRUE}
194 {$setc TARGET_API_MAC_CARBON := TRUE}
195 {$setc TARGET_API_MAC_OS8 := FALSE}
196 {$setc TARGET_API_MAC_OSX := TRUE}
197 {$setc TARGET_CARBON := TRUE}
198 {$setc TARGET_CPU_68K := FALSE}
199 {$setc TARGET_CPU_MIPS := FALSE}
200 {$setc TARGET_CPU_SPARC := FALSE}
201 {$setc TARGET_OS_UNIX := FALSE}
202 {$setc TARGET_OS_WIN32 := FALSE}
203 {$setc TARGET_RT_MAC_68881 := FALSE}
204 {$setc TARGET_RT_MAC_CFM := FALSE}
205 {$setc TARGET_RT_MAC_MACHO := TRUE}
206 {$setc TYPED_FUNCTION_POINTERS := TRUE}
207 {$setc TYPE_BOOL := FALSE}
208 {$setc TYPE_EXTENDED := FALSE}
209 {$setc TYPE_LONGLONG := TRUE}
210 uses MacTypes;
211 {$endc} {not MACOSALLINCLUDE}
212 
213 
214 {$ifc TARGET_OS_MAC}
215 
216 {$ALIGN POWER}
217 
218 
219 const
220 	paramErr = -50;  {error in user parameter list}
221 	noHardwareErr = -200; {Sound Manager Error Returns}
222 	notEnoughHardwareErr = -201; {Sound Manager Error Returns}
223 	userCanceledErr = -128;
224 	qErr = -1;   {queue element not found during deletion}
225 	vTypErr = -2;   {invalid queue element}
226 	corErr = -3;   {core routine number out of range}
227 	unimpErr = -4;   {unimplemented core routine}
228 	SlpTypeErr = -5;   {invalid queue element}
229 	seNoDB = -8;   {no debugger installed to handle debugger command}
230 	controlErr = -17;  {I/O System Errors}
231 	statusErr = -18;  {I/O System Errors}
232 	readErr = -19;  {I/O System Errors}
233 	writErr = -20;  {I/O System Errors}
234 	badUnitErr = -21;  {I/O System Errors}
235 	unitEmptyErr = -22;  {I/O System Errors}
236 	openErr = -23;  {I/O System Errors}
237 	closErr = -24;  {I/O System Errors}
238 	dRemovErr = -25;  {tried to remove an open driver}
239 	dInstErr = -26;   {DrvrInstall couldn't find driver in resources}
240 
241 const
242 	abortErr = -27;  {IO call aborted by KillIO}
243 	iIOAbortErr = -27;  {IO abort error (Printing Manager)}
244 	notOpenErr = -28;  {Couldn't rd/wr/ctl/sts cause driver not opened}
245 	unitTblFullErr = -29;  {unit table has no more entries}
246 	dceExtErr = -30;  {dce extension error}
247 	slotNumErr = -360; {invalid slot # error}
248 	gcrOnMFMErr = -400; {gcr format on high density media error}
249 	dirFulErr = -33;  {Directory full}
250 	dskFulErr = -34;  {disk full}
251 	nsvErr = -35;  {no such volume}
252 	ioErr = -36;  {I/O error (bummers)}
253 	bdNamErr = -37;  { bad file name passed to routine; there may be no bad names in the final system!}
254 	fnOpnErr = -38;  {File not open}
255 	eofErr = -39;  {End of file}
256 	posErr = -40;  {tried to position to before start of file (r/w)}
257 	mFulErr = -41;  {memory full (open) or file won't fit (load)}
258 	tmfoErr = -42;  {too many files open}
259 	fnfErr = -43;  {File not found}
260 	wPrErr = -44;  {diskette is write protected.}
261 	fLckdErr = -45;   {file is locked}
262 
263 const
264 	vLckdErr = -46;  {volume is locked}
265 	fBsyErr = -47;  {File is busy (delete)}
266 	dupFNErr = -48;  {duplicate filename (rename)}
267 	opWrErr = -49;  {file already open with with write permission}
268 	rfNumErr = -51;  {refnum error}
269 	gfpErr = -52;  {get file position error}
270 	volOffLinErr = -53;  {volume not on line error (was Ejected)}
271 	permErr = -54;  {permissions error (on file open)}
272 	volOnLinErr = -55;  {drive volume already on-line at MountVol}
273 	nsDrvErr = -56;  {no such drive (tried to mount a bad drive num)}
274 	noMacDskErr = -57;  {not a mac diskette (sig bytes are wrong)}
275 	extFSErr = -58;  {volume in question belongs to an external fs}
276 	fsRnErr = -59;  {file system internal error:during rename the old entry was deleted but could not be restored.}
277 	badMDBErr = -60;  {bad master directory block}
278 	wrPermErr = -61;  {write permissions error}
279 	dirNFErr = -120; {Directory not found}
280 	tmwdoErr = -121; {No free WDCB available}
281 	badMovErr = -122; {Move into offspring error}
282 	wrgVolTypErr = -123; {Wrong volume type error [operation not supported for MFS]}
283 	volGoneErr = -124;  {Server volume has been disconnected.}
284 
285 const
286 	fidNotFound = -1300; {no file thread exists.}
287 	fidExists = -1301; {file id already exists}
288 	notAFileErr = -1302; {directory specified}
289 	diffVolErr = -1303; {files on different volumes}
290 	catChangedErr = -1304; {the catalog has been modified}
291 	desktopDamagedErr = -1305; {desktop database files are corrupted}
292 	sameFileErr = -1306; {can't exchange a file with itself}
293 	badFidErr = -1307; {file id is dangling or doesn't match with the file number}
294 	notARemountErr = -1308; {when _Mount allows only remounts and doesn't get one}
295 	fileBoundsErr = -1309; {file's EOF, offset, mark or size is too big}
296 	fsDataTooBigErr = -1310; {file or volume is too big for system}
297 	volVMBusyErr = -1311; {can't eject because volume is in use by VM}
298 	badFCBErr = -1327; {FCBRecPtr is not valid}
299 	errFSUnknownCall = -1400; { selector is not recognized by this filesystem }
300 	errFSBadFSRef = -1401; { FSRef parameter is bad }
301 	errFSBadForkName = -1402; { Fork name parameter is bad }
302 	errFSBadBuffer = -1403; { A buffer parameter was bad }
303 	errFSBadForkRef = -1404; { A ForkRefNum parameter was bad }
304 	errFSBadInfoBitmap = -1405; { A CatalogInfoBitmap or VolumeInfoBitmap has reserved or invalid bits set }
305 	errFSMissingCatInfo = -1406; { A CatalogInfo parameter was NULL }
306 	errFSNotAFolder = -1407; { Expected a folder, got a file }
307 	errFSForkNotFound = -1409; { Named fork does not exist }
308 	errFSNameTooLong = -1410; { File/fork name is too long to create/rename }
309 	errFSMissingName = -1411; { A Unicode name parameter was NULL or nameLength parameter was zero }
310 	errFSBadPosMode = -1412; { Newline bits set in positionMode }
311 	errFSBadAllocFlags = -1413; { Invalid bits set in allocationFlags }
312 	errFSNoMoreItems = -1417; { Iteration ran out of items to return }
313 	errFSBadItemCount = -1418; { maximumItems was zero }
314 	errFSBadSearchParams = -1419; { Something wrong with CatalogSearch searchParams }
315 	errFSRefsDifferent = -1420; { FSCompareFSRefs; refs are for different objects }
316 	errFSForkExists = -1421; { Named fork already exists. }
317 	errFSBadIteratorFlags = -1422; { Flags passed to FSOpenIterator are bad }
318 	errFSIteratorNotFound = -1423; { Passed FSIterator is not an open iterator }
319 	errFSIteratorNotSupported = -1424; { The iterator's flags or container are not supported by this call }
320 	errFSQuotaExceeded = -1425; { The user's quota of disk blocks has been exhausted. }
321 	errFSOperationNotSupported = -1426; { The attempted operation is not supported }
322 	errFSAttributeNotFound = -1427; { The requested attribute does not exist }
323 	errFSPropertyNotValid = -1428; { The requested property is not valid (has not been set yet) }
324 	errFSNotEnoughSpaceForOperation = -1429; { There is not enough disk space to perform the requested operation }
325 	envNotPresent = -5500; {returned by glue.}
326 	envBadVers = -5501; {Version non-positive}
327 	envVersTooBig = -5502; {Version bigger than call can handle}
328 	fontDecError = -64;  {error during font declaration}
329 	fontNotDeclared = -65;  {font not declared}
330 	fontSubErr = -66;  {font substitution occurred}
331 	fontNotOutlineErr = -32615; {bitmap font passed to routine that does outlines only}
332 	firstDskErr = -84;  {I/O System Errors}
333 	lastDskErr = -64;  {I/O System Errors}
334 	noDriveErr = -64;  {drive not installed}
335 	offLinErr = -65;  {r/w requested for an off-line drive}
336 	noNybErr = -66;   {couldn't find 5 nybbles in 200 tries}
337 
338 const
339 	noAdrMkErr = -67;  {couldn't find valid addr mark}
340 	dataVerErr = -68;  {read verify compare failed}
341 	badCksmErr = -69;  {addr mark checksum didn't check}
342 	badBtSlpErr = -70;  {bad addr mark bit slip nibbles}
343 	noDtaMkErr = -71;  {couldn't find a data mark header}
344 	badDCksum = -72;  {bad data mark checksum}
345 	badDBtSlp = -73;  {bad data mark bit slip nibbles}
346 	wrUnderrun = -74;  {write underrun occurred}
347 	cantStepErr = -75;  {step handshake failed}
348 	tk0BadErr = -76;  {track 0 detect doesn't change}
349 	initIWMErr = -77;  {unable to initialize IWM}
350 	twoSideErr = -78;  {tried to read 2nd side on a 1-sided drive}
351 	spdAdjErr = -79;  {unable to correctly adjust disk speed}
352 	seekErr = -80;  {track number wrong on address mark}
353 	sectNFErr = -81;  {sector number never found on a track}
354 	fmt1Err = -82;  {can't find sector 0 after track format}
355 	fmt2Err = -83;  {can't get enough sync}
356 	verErr = -84;  {track failed to verify}
357 	clkRdErr = -85;  {unable to read same clock value twice}
358 	clkWrErr = -86;  {time written did not verify}
359 	prWrErr = -87;  {parameter ram written didn't read-verify}
360 	prInitErr = -88;  {InitUtil found the parameter ram uninitialized}
361 	rcvrErr = -89;  {SCC receiver error (framing; parity; OR)}
362 	breakRecd = -90;   {Break received (SCC)}
363 
364 const
365 {Scrap Manager errors}
366 	noScrapErr = -100; {No scrap exists error}
367 	noTypeErr = -102;  {No object of that type in scrap}
368 
369 const
370 { ENET error codes }
371 	eLenErr = -92;  {Length error ddpLenErr}
372 	eMultiErr = -91;   {Multicast address error ddpSktErr}
373 
374 const
375 	ddpSktErr = -91;  {error in soket number}
376 	ddpLenErr = -92;  {data length too big}
377 	noBridgeErr = -93;  {no network bridge for non-local send}
378 	lapProtErr = -94;  {error in attaching/detaching protocol}
379 	excessCollsns = -95;  {excessive collisions on write}
380 	portNotPwr = -96;  {serial port not currently powered}
381 	portInUse = -97;  {driver Open error code (port is in use)}
382 	portNotCf = -98;   {driver Open error code (parameter RAM not configured for this connection)}
383 
384 const
385 { Memory Manager errors}
386 	memROZWarn = -99;  {soft error in ROZ}
387 	memROZError = -99;  {hard error in ROZ}
388 	memROZErr = -99;  {hard error in ROZ}
389 	memFullErr = -108; {Not enough room in heap zone}
390 	nilHandleErr = -109; {Master Pointer was NIL in HandleZone or other}
391 	memWZErr = -111; {WhichZone failed (applied to free block)}
392 	memPurErr = -112; {trying to purge a locked or non-purgeable block}
393 	memAdrErr = -110; {address was odd; or out of range}
394 	memAZErr = -113; {Address in zone check failed}
395 	memPCErr = -114; {Pointer Check failed}
396 	memBCErr = -115; {Block Check failed}
397 	memSCErr = -116; {Size Check failed}
398 	memLockedErr = -117;  {trying to move a locked block (MoveHHi)}
399 
400 const
401 { Printing Errors }
402 	iMemFullErr = -108;
403 	iIOAbort = -27;
404 
405 
406 const
407 	resourceInMemory = -188; {Resource already in memory}
408 	writingPastEnd = -189; {Writing past end of file}
409 	inputOutOfBounds = -190; {Offset of Count out of bounds}
410 	resNotFound = -192; {Resource not found}
411 	resFNotFound = -193; {Resource file not found}
412 	addResFailed = -194; {AddResource failed}
413 	addRefFailed = -195; {AddReference failed}
414 	rmvResFailed = -196; {RmveResource failed}
415 	rmvRefFailed = -197; {RmveReference failed}
416 	resAttrErr = -198; {attribute inconsistent with operation}
417 	mapReadErr = -199; {map inconsistent with operation}
418 	CantDecompress = -186; {resource bent ("the bends") - can't decompress a compressed resource}
419 	badExtResource = -185; {extended resource has a bad format.}
420 	noMemForPictPlaybackErr = -145;
421 	rgnOverflowErr = -147;
422 	rgnTooBigError = -147;
423 	pixMapTooDeepErr = -148;
424 	insufficientStackErr = -149;
425 	nsStackErr = -149;
426 
427 const
428 	evtNotEnb = 1;     {event not enabled at PostEvent}
429 
430 { OffScreen QuickDraw Errors }
431 const
432 	cMatchErr = -150; {Color2Index failed to find an index}
433 	cTempMemErr = -151; {failed to allocate memory for temporary structures}
434 	cNoMemErr = -152; {failed to allocate memory for structure}
435 	cRangeErr = -153; {range error on colorTable request}
436 	cProtectErr = -154; {colorTable entry protection violation}
437 	cDevErr = -155; {invalid type of graphics device}
438 	cResErr = -156; {invalid resolution for MakeITable}
439 	cDepthErr = -157; {invalid pixel depth }
440 	rgnTooBigErr = -500; { should have never been added! (cf. rgnTooBigError = 147) }
441 	updPixMemErr = -125; {insufficient memory to update a pixmap}
442 	pictInfoVersionErr = -11000; {wrong version of the PictInfo structure}
443 	pictInfoIDErr = -11001; {the internal consistancy check for the PictInfoID is wrong}
444 	pictInfoVerbErr = -11002; {the passed verb was invalid}
445 	cantLoadPickMethodErr = -11003; {unable to load the custom pick proc}
446 	colorsRequestedErr = -11004; {the number of colors requested was illegal}
447 	pictureDataErr = -11005; {the picture data was invalid}
448 
449 { ColorSync Result codes }
450 const
451 { General Errors }
452 	cmProfileError = -170;
453 	cmMethodError = -171;
454 	cmMethodNotFound = -175; { CMM not present }
455 	cmProfileNotFound = -176; { Responder error }
456 	cmProfilesIdentical = -177; { Profiles the same }
457 	cmCantConcatenateError = -178; { Profile can't be concatenated }
458 	cmCantXYZ = -179; { CMM cant handle XYZ space }
459 	cmCantDeleteProfile = -180; { Responder error }
460 	cmUnsupportedDataType = -181; { Responder error }
461 	cmNoCurrentProfile = -182;  { Responder error }
462 
463 
464 const
465 {Sound Manager errors}
466 	noHardware = noHardwareErr; {obsolete spelling}
467 	notEnoughHardware = notEnoughHardwareErr; {obsolete spelling}
468 	queueFull = -203; {Sound Manager Error Returns}
469 	resProblem = -204; {Sound Manager Error Returns}
470 	badChannel = -205; {Sound Manager Error Returns}
471 	badFormat = -206; {Sound Manager Error Returns}
472 	notEnoughBufferSpace = -207; {could not allocate enough memory}
473 	badFileFormat = -208; {was not type AIFF or was of bad format,corrupt}
474 	channelBusy = -209; {the Channel is being used for a PFD already}
475 	buffersTooSmall = -210; {can not operate in the memory allowed}
476 	channelNotBusy = -211;
477 	noMoreRealTime = -212; {not enough CPU cycles left to add another task}
478 	siVBRCompressionNotSupported = -213; {vbr audio compression not supported for this operation}
479 	siNoSoundInHardware = -220; {no Sound Input hardware}
480 	siBadSoundInDevice = -221; {invalid index passed to SoundInGetIndexedDevice}
481 	siNoBufferSpecified = -222; {returned by synchronous SPBRecord if nil buffer passed}
482 	siInvalidCompression = -223; {invalid compression type}
483 	siHardDriveTooSlow = -224; {hard drive too slow to record to disk}
484 	siInvalidSampleRate = -225; {invalid sample rate}
485 	siInvalidSampleSize = -226; {invalid sample size}
486 	siDeviceBusyErr = -227; {input device already in use}
487 	siBadDeviceName = -228; {input device could not be opened}
488 	siBadRefNum = -229; {invalid input device reference number}
489 	siInputDeviceErr = -230; {input device hardware failure}
490 	siUnknownInfoType = -231; {invalid info type selector (returned by driver)}
491 	siUnknownQuality = -232;  {invalid quality selector (returned by driver)}
492 
493 {Speech Manager errors}
494 const
495 	noSynthFound = -240;
496 	synthOpenFailed = -241;
497 	synthNotReady = -242;
498 	bufTooSmall = -243;
499 	voiceNotFound = -244;
500 	incompatibleVoice = -245;
501 	badDictFormat = -246;
502 	badInputText = -247;
503 
504 { Midi Manager Errors: }
505 const
506 	midiNoClientErr = -250; {no client with that ID found}
507 	midiNoPortErr = -251; {no port with that ID found}
508 	midiTooManyPortsErr = -252; {too many ports already installed in the system}
509 	midiTooManyConsErr = -253; {too many connections made}
510 	midiVConnectErr = -254; {pending virtual connection created}
511 	midiVConnectMade = -255; {pending virtual connection resolved}
512 	midiVConnectRmvd = -256; {pending virtual connection removed}
513 	midiNoConErr = -257; {no connection exists between specified ports}
514 	midiWriteErr = -258; {MIDIWritePacket couldn't write to all connected ports}
515 	midiNameLenErr = -259; {name supplied is longer than 31 characters}
516 	midiDupIDErr = -260; {duplicate client ID}
517 	midiInvalidCmdErr = -261;  {command not supported for port type}
518 
519 
520 const
521 	nmTypErr = -299;  {Notification Manager:wrong queue type}
522 
523 
524 const
525 	siInitSDTblErr = 1;    {slot int dispatch table could not be initialized.}
526 	siInitVBLQsErr = 2;    {VBLqueues for all slots could not be initialized.}
527 	siInitSPTblErr = 3;    {slot priority table could not be initialized.}
528 	sdmJTInitErr = 10;   {SDM Jump Table could not be initialized.}
529 	sdmInitErr = 11;   {SDM could not be initialized.}
530 	sdmSRTInitErr = 12;   {Slot Resource Table could not be initialized.}
531 	sdmPRAMInitErr = 13;   {Slot PRAM could not be initialized.}
532 	sdmPriInitErr = 14;    {Cards could not be initialized.}
533 
534 const
535 	smSDMInitErr = -290; {Error; SDM could not be initialized.}
536 	smSRTInitErr = -291; {Error; Slot Resource Table could not be initialized.}
537 	smPRAMInitErr = -292; {Error; Slot Resource Table could not be initialized.}
538 	smPriInitErr = -293; {Error; Cards could not be initialized.}
539 	smEmptySlot = -300; {No card in slot}
540 	smCRCFail = -301; {CRC check failed for declaration data}
541 	smFormatErr = -302; {FHeader Format is not Apple's}
542 	smRevisionErr = -303; {Wrong revison level}
543 	smNoDir = -304; {Directory offset is Nil}
544 	smDisabledSlot = -305; {This slot is disabled (-305 use to be smLWTstBad)}
545 	smNosInfoArray = -306;  {No sInfoArray. Memory Mgr error.}
546 
547 
548 const
549 	smResrvErr = -307; {Fatal reserved error. Resreved field <> 0.}
550 	smUnExBusErr = -308; {Unexpected BusError}
551 	smBLFieldBad = -309; {ByteLanes field was bad.}
552 	smFHBlockRdErr = -310; {Error occurred during _sGetFHeader.}
553 	smFHBlkDispErr = -311; {Error occurred during _sDisposePtr (Dispose of FHeader block).}
554 	smDisposePErr = -312; {_DisposePointer error}
555 	smNoBoardSRsrc = -313; {No Board sResource.}
556 	smGetPRErr = -314; {Error occurred during _sGetPRAMRec (See SIMStatus).}
557 	smNoBoardId = -315; {No Board Id.}
558 	smInitStatVErr = -316; {The InitStatusV field was negative after primary or secondary init.}
559 	smInitTblVErr = -317; {An error occurred while trying to initialize the Slot Resource Table.}
560 	smNoJmpTbl = -318; {SDM jump table could not be created.}
561 	smReservedSlot = -318; {slot is reserved, VM should not use this address space.}
562 	smBadBoardId = -319; {BoardId was wrong; re-init the PRAM record.}
563 	smBusErrTO = -320; {BusError time out.}
564                                         { These errors are logged in the  vendor status field of the sInfo record. }
565 	svTempDisable = -32768; {Temporarily disable card but run primary init.}
566 	svDisabled = -32640; {Reserve range -32640 to -32768 for Apple temp disables.}
567 	smBadRefId = -330; {Reference Id not found in List}
568 	smBadsList = -331; {Bad sList: Id1 < Id2 < Id3 ...format is not followed.}
569 	smReservedErr = -332; {Reserved field not zero}
570 	smCodeRevErr = -333;  {Code revision is wrong}
571 
572 const
573 	smCPUErr = -334; {Code revision is wrong}
574 	smsPointerNil = -335; {LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.}
575 	smNilsBlockErr = -336; {Nil sBlock error (Don't allocate and try to use a nil sBlock)}
576 	smSlotOOBErr = -337; {Slot out of bounds error}
577 	smSelOOBErr = -338; {Selector out of bounds error}
578 	smNewPErr = -339; {_NewPtr error}
579 	smBlkMoveErr = -340; {_BlockMove error}
580 	smCkStatusErr = -341; {Status of slot = fail.}
581 	smGetDrvrNamErr = -342; {Error occurred during _sGetDrvrName.}
582 	smDisDrvrNamErr = -343; {Error occurred during _sDisDrvrName.}
583 	smNoMoresRsrcs = -344; {No more sResources}
584 	smsGetDrvrErr = -345; {Error occurred during _sGetDriver.}
585 	smBadsPtrErr = -346; {Bad pointer was passed to sCalcsPointer}
586 	smByteLanesErr = -347; {NumByteLanes was determined to be zero.}
587 	smOffsetErr = -348; {Offset was too big (temporary error}
588 	smNoGoodOpens = -349; {No opens were successfull in the loop.}
589 	smSRTOvrFlErr = -350; {SRT over flow.}
590 	smRecNotFnd = -351;  {Record not found in the SRT.}
591 
592 
593 const
594 {Dictionary Manager errors}
595 	notBTree = -410; {The file is not a dictionary.}
596 	btNoSpace = -413; {Can't allocate disk space.}
597 	btDupRecErr = -414; {Record already exists.}
598 	btRecNotFnd = -415; {Record cannot be found.}
599 	btKeyLenErr = -416; {Maximum key length is too long or equal to zero.}
600 	btKeyAttrErr = -417; {There is no such a key attribute.}
601 	unknownInsertModeErr = -20000; {There is no such an insert mode.}
602 	recordDataTooBigErr = -20001; {The record data is bigger than buffer size (1024 bytes).}
603 	invalidIndexErr = -20002; {The recordIndex parameter is not valid.}
604 
605 
606 {
607  * Error codes from FSM functions
608  }
609 const
610 	fsmFFSNotFoundErr = -431; { Foreign File system does not exist - new Pack2 could return this error too }
611 	fsmBusyFFSErr = -432; { File system is busy, cannot be removed }
612 	fsmBadFFSNameErr = -433; { Name length not 1 <= length <= 31 }
613 	fsmBadFSDLenErr = -434; { FSD size incompatible with current FSM vers }
614 	fsmDuplicateFSIDErr = -435; { FSID already exists on InstallFS }
615 	fsmBadFSDVersionErr = -436; { FSM version incompatible with FSD }
616 	fsmNoAlternateStackErr = -437; { no alternate stack for HFS CI }
617 	fsmUnknownFSMMessageErr = -438;  { unknown message passed to FSM }
618 
619 
620 const
621 { Edition Mgr errors}
622 	editionMgrInitErr = -450; {edition manager not inited by this app}
623 	badSectionErr = -451; {not a valid SectionRecord}
624 	notRegisteredSectionErr = -452; {not a registered SectionRecord}
625 	badEditionFileErr = -453; {edition file is corrupt}
626 	badSubPartErr = -454; {can not use sub parts in this release}
627 	multiplePublisherWrn = -460; {A Publisher is already registered for that container}
628 	containerNotFoundWrn = -461; {could not find editionContainer at this time}
629 	containerAlreadyOpenWrn = -462; {container already opened by this section}
630 	notThePublisherWrn = -463;  {not the first registered publisher for that container}
631 
632 const
633 	teScrapSizeErr = -501; {scrap item too big for text edit record}
634 	hwParamErr = -502; {bad selector for _HWPriv}
635 	driverHardwareGoneErr = -503;  {disk driver's hardware was disconnected}
636 
637 const
638 {Process Manager errors}
639 	procNotFound = -600; {no eligible process with specified descriptor}
640 	memFragErr = -601; {not enough room to launch app w/special requirements}
641 	appModeErr = -602; {memory mode is 32-bit, but app not 32-bit clean}
642 	protocolErr = -603; {app made module calls in improper order}
643 	hardwareConfigErr = -604; {hardware configuration not correct for call}
644 	appMemFullErr = -605; {application SIZE not big enough for launch}
645 	appIsDaemon = -606; {app is BG-only, and launch flags disallow this}
646 	bufferIsSmall = -607; {error returns from Post and Accept }
647 	noOutstandingHLE = -608;
648 	connectionInvalid = -609;
649 	noUserInteractionAllowed = -610;  { no user interaction allowed }
650 
651 const
652 { More Process Manager errors }
653 	wrongApplicationPlatform = -875; { The application could not launch because the required platform is not available    }
654 	appVersionTooOld = -876; { The application's creator and version are incompatible with the current version of Mac OS. }
655 	notAppropriateForClassic = -877;  { This application won't or shouldn't run on Classic (Problem 2481058). }
656 
657 { Thread Manager Error Codes }
658 const
659 	threadTooManyReqsErr = -617;
660 	threadNotFoundErr = -618;
661 	threadProtocolErr = -619;
662 
663 const
664 	threadBadAppContextErr = -616;
665 
666 {MemoryDispatch errors}
667 const
668 	notEnoughMemoryErr = -620; {insufficient physical memory}
669 	notHeldErr = -621; {specified range of memory is not held}
670 	cannotMakeContiguousErr = -622; {cannot make specified range contiguous}
671 	notLockedErr = -623; {specified range of memory is not locked}
672 	interruptsMaskedErr = -624; {don�t call with interrupts masked}
673 	cannotDeferErr = -625; {unable to defer additional functions}
674 	noMMUErr = -626;  {no MMU present}
675 
676 { Internal VM error codes returned in pVMGLobals (b78) if VM doesn't load }
677 const
678 	vmMorePhysicalThanVirtualErr = -628; {VM could not start because there was more physical memory than virtual memory (bad setting in VM config resource)}
679 	vmKernelMMUInitErr = -629; {VM could not start because VM_MMUInit kernel call failed}
680 	vmOffErr = -630; {VM was configured off, or command key was held down at boot}
681 	vmMemLckdErr = -631; {VM could not start because of a lock table conflict (only on non-SuperMario ROMs)}
682 	vmBadDriver = -632; {VM could not start because the driver was incompatible}
683 	vmNoVectorErr = -633;  {VM could not start because the vector code could not load}
684 
685 { FileMapping errors }
686 const
687 	vmInvalidBackingFileIDErr = -640; { invalid BackingFileID }
688 	vmMappingPrivilegesErr = -641; { requested MappingPrivileges cannot be obtained }
689 	vmBusyBackingFileErr = -642; { open views found on BackingFile }
690 	vmNoMoreBackingFilesErr = -643; { no more BackingFiles were found }
691 	vmInvalidFileViewIDErr = -644; {invalid FileViewID }
692 	vmFileViewAccessErr = -645; { requested FileViewAccess cannot be obtained }
693 	vmNoMoreFileViewsErr = -646; { no more FileViews were found }
694 	vmAddressNotInFileViewErr = -647; { address is not in a FileView }
695 	vmInvalidOwningProcessErr = -648;  { current process does not own the BackingFileID or FileViewID }
696 
697 { Database access error codes }
698 const
699 	rcDBNull = -800;
700 	rcDBValue = -801;
701 	rcDBError = -802;
702 	rcDBBadType = -803;
703 	rcDBBreak = -804;
704 	rcDBExec = -805;
705 	rcDBBadSessID = -806;
706 	rcDBBadSessNum = -807; { bad session number for DBGetConnInfo }
707 	rcDBBadDDEV = -808; { bad ddev specified on DBInit }
708 	rcDBAsyncNotSupp = -809; { ddev does not support async calls }
709 	rcDBBadAsyncPB = -810; { tried to kill a bad pb }
710 	rcDBNoHandler = -811; { no app handler for specified data type }
711 	rcDBWrongVersion = -812; { incompatible versions }
712 	rcDBPackNotInited = -813;  { attempt to call other routine before InitDBPack }
713 
714 
715 {Help Mgr error range: -850 to -874}
716 const
717 	hmHelpDisabled = -850; { Show Balloons mode was off, call to routine ignored }
718 	hmBalloonAborted = -853; { Returned if mouse was moving or mouse wasn't in window port rect }
719 	hmSameAsLastBalloon = -854; { Returned from HMShowMenuBalloon if menu & item is same as last time }
720 	hmHelpManagerNotInited = -855; { Returned from HMGetHelpMenuHandle if help menu not setup }
721 	hmSkippedBalloon = -857; { Returned from calls if helpmsg specified a skip balloon }
722 	hmWrongVersion = -858; { Returned if help mgr resource was the wrong version }
723 	hmUnknownHelpType = -859; { Returned if help msg record contained a bad type }
724 	hmOperationUnsupported = -861; { Returned from HMShowBalloon call if bad method passed to routine }
725 	hmNoBalloonUp = -862; { Returned from HMRemoveBalloon if no balloon was visible when call was made }
726 	hmCloseViewActive = -863;  { Returned from HMRemoveBalloon if CloseView was active }
727 
728 
729 const
730 {PPC errors}
731 	notInitErr = -900; {PPCToolBox not initialized}
732 	nameTypeErr = -902; {Invalid or inappropriate locationKindSelector in locationName}
733 	noPortErr = -903; {Unable to open port or bad portRefNum.  If you're calling }
734                                         { AESend, this is because your application does not have }
735                                         { the isHighLevelEventAware bit set in your SIZE resource. }
736 	noGlobalsErr = -904; {The system is hosed, better re-boot}
737 	localOnlyErr = -905; {Network activity is currently disabled}
738 	destPortErr = -906; {Port does not exist at destination}
739 	sessTableErr = -907; {Out of session tables, try again later}
740 	noSessionErr = -908; {Invalid session reference number}
741 	badReqErr = -909; {bad parameter or invalid state for operation}
742 	portNameExistsErr = -910; {port is already open (perhaps in another app)}
743 	noUserNameErr = -911; {user name unknown on destination machine}
744 	userRejectErr = -912; {Destination rejected the session request}
745 	noMachineNameErr = -913; {user hasn't named his Macintosh in the Network Setup Control Panel}
746 	noToolboxNameErr = -914; {A system resource is missing, not too likely}
747 	noResponseErr = -915; {unable to contact destination}
748 	portClosedErr = -916; {port was closed}
749 	sessClosedErr = -917; {session was closed}
750 	badPortNameErr = -919; {PPCPortRec malformed}
751 	noDefaultUserErr = -922; {user hasn't typed in owners name in Network Setup Control Pannel}
752 	notLoggedInErr = -923; {The default userRefNum does not yet exist}
753 	noUserRefErr = -924; {unable to create a new userRefNum}
754 	networkErr = -925; {An error has occurred in the network, not too likely}
755 	noInformErr = -926; {PPCStart failed because destination did not have inform pending}
756 	authFailErr = -927; {unable to authenticate user at destination}
757 	noUserRecErr = -928; {Invalid user reference number}
758 	badServiceMethodErr = -930; {illegal service type, or not supported}
759 	badLocNameErr = -931; {location name malformed}
760 	guestNotAllowedErr = -932;  {destination port requires authentication}
761 
762 { Font Mgr errors}
763 const
764 	kFMIterationCompleted = -980;
765 	kFMInvalidFontFamilyErr = -981;
766 	kFMInvalidFontErr = -982;
767 	kFMIterationScopeModifiedErr = -983;
768 	kFMFontTableAccessErr = -984;
769 	kFMFontContainerAccessErr = -985;
770 
771 const
772 	noMaskFoundErr = -1000; {Icon Utilties Error}
773 
774 const
775 	nbpBuffOvr = -1024; {Buffer overflow in LookupName}
776 	nbpNoConfirm = -1025;
777 	nbpConfDiff = -1026; {Name confirmed at different socket}
778 	nbpDuplicate = -1027; {Duplicate name exists already}
779 	nbpNotFound = -1028; {Name not found on remove}
780 	nbpNISErr = -1029; {Error trying to open the NIS}
781 
782 const
783 	aspBadVersNum = -1066; {Server cannot support this ASP version}
784 	aspBufTooSmall = -1067; {Buffer too small}
785 	aspNoMoreSess = -1068; {No more sessions on server}
786 	aspNoServers = -1069; {No servers at that address}
787 	aspParamErr = -1070; {Parameter error}
788 	aspServerBusy = -1071; {Server cannot open another session}
789 	aspSessClosed = -1072; {Session closed}
790 	aspSizeErr = -1073; {Command block too big}
791 	aspTooMany = -1074; {Too many clients (server error)}
792 	aspNoAck = -1075; {No ack on attention request (server err)}
793 
794 const
795 	reqFailed = -1096;
796 	tooManyReqs = -1097;
797 	tooManySkts = -1098;
798 	badATPSkt = -1099;
799 	badBuffNum = -1100;
800 	noRelErr = -1101;
801 	cbNotFound = -1102;
802 	noSendResp = -1103;
803 	noDataArea = -1104;
804 	reqAborted = -1105;
805 
806 { ADSP Error Codes }
807 const
808 { driver control ioResults }
809 	errRefNum = -1280; { bad connection refNum }
810 	errAborted = -1279; { control call was aborted }
811 	errState = -1278; { bad connection state for this operation }
812 	errOpening = -1277; { open connection request failed }
813 	errAttention = -1276; { attention message too long }
814 	errFwdReset = -1275; { read terminated by forward reset }
815 	errDSPQueueSize = -1274; { DSP Read/Write Queue Too small }
816 	errOpenDenied = -1273; { open connection request was denied }
817 
818 
819 {--------------------------------------------------------------
820         Apple event manager error messages
821 --------------------------------------------------------------}
822 
823 const
824 	errAECoercionFail = -1700; { bad parameter data or unable to coerce the data supplied }
825 	errAEDescNotFound = -1701;
826 	errAECorruptData = -1702;
827 	errAEWrongDataType = -1703;
828 	errAENotAEDesc = -1704;
829 	errAEBadListItem = -1705; { the specified list item does not exist }
830 	errAENewerVersion = -1706; { need newer version of the AppleEvent manager }
831 	errAENotAppleEvent = -1707; { the event is not in AppleEvent format }
832 	errAEEventNotHandled = -1708; { the AppleEvent was not handled by any handler }
833 	errAEReplyNotValid = -1709; { AEResetTimer was passed an invalid reply parameter }
834 	errAEUnknownSendMode = -1710; { mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown }
835 	errAEWaitCanceled = -1711; { in AESend, the user cancelled out of wait loop for reply or receipt }
836 	errAETimeout = -1712; { the AppleEvent timed out }
837 	errAENoUserInteraction = -1713; { no user interaction is allowed }
838 	errAENotASpecialFunction = -1714; { there is no special function for/with this keyword }
839 	errAEParamMissed = -1715; { a required parameter was not accessed }
840 	errAEUnknownAddressType = -1716; { the target address type is not known }
841 	errAEHandlerNotFound = -1717; { no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler }
842 	errAEReplyNotArrived = -1718; { the contents of the reply you are accessing have not arrived yet }
843 	errAEIllegalIndex = -1719; { index is out of range in a put operation }
844 	errAEImpossibleRange = -1720; { A range like 3rd to 2nd, or 1st to all. }
845 	errAEWrongNumberArgs = -1721; { Logical op kAENOT used with other than 1 term }
846 	errAEAccessorNotFound = -1723; { Accessor proc matching wantClass and containerType or wildcards not found }
847 	errAENoSuchLogical = -1725; { Something other than AND, OR, or NOT }
848 	errAEBadTestKey = -1726; { Test is neither typeLogicalDescriptor nor typeCompDescriptor }
849 	errAENotAnObjSpec = -1727; { Param to AEResolve not of type 'obj ' }
850 	errAENoSuchObject = -1728; { e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. }
851 	errAENegativeCount = -1729; { CountProc returned negative value }
852 	errAEEmptyListContainer = -1730; { Attempt to pass empty list as container to accessor }
853 	errAEUnknownObjectType = -1731; { available only in version 1.0.1 or greater }
854 	errAERecordingIsAlreadyOn = -1732; { available only in version 1.0.1 or greater }
855 	errAEReceiveTerminate = -1733; { break out of all levels of AEReceive to the topmost (1.1 or greater) }
856 	errAEReceiveEscapeCurrent = -1734; { break out of only lowest level of AEReceive (1.1 or greater) }
857 	errAEEventFiltered = -1735; { event has been filtered, and should not be propogated (1.1 or greater) }
858 	errAEDuplicateHandler = -1736; { attempt to install handler in table for identical class and id (1.1 or greater) }
859 	errAEStreamBadNesting = -1737; { nesting violation while streaming }
860 	errAEStreamAlreadyConverted = -1738; { attempt to convert a stream that has already been converted }
861 	errAEDescIsNull = -1739; { attempting to perform an invalid operation on a null descriptor }
862 	errAEBuildSyntaxError = -1740; { AEBuildDesc and friends detected a syntax error }
863 	errAEBufferTooSmall = -1741; { buffer for AEFlattenDesc too small }
864 
865 const
866 	errOSASystemError = -1750;
867 	errOSAInvalidID = -1751;
868 	errOSABadStorageType = -1752;
869 	errOSAScriptError = -1753;
870 	errOSABadSelector = -1754;
871 	errOSASourceNotAvailable = -1756;
872 	errOSANoSuchDialect = -1757;
873 	errOSADataFormatObsolete = -1758;
874 	errOSADataFormatTooNew = -1759;
875 	errOSACorruptData = errAECorruptData;
876 	errOSARecordingIsAlreadyOn = errAERecordingIsAlreadyOn;
877 	errOSAComponentMismatch = -1761; { Parameters are from 2 different components }
878 	errOSACantOpenComponent = -1762; { Can't connect to scripting system with that ID }
879 	errOSACantStorePointers = -1763;  { Can't store memory pointers in a saved script }
880 
881 
882 { AppleEvent error definitions }
883 const
884 	errOffsetInvalid = -1800;
885 	errOffsetIsOutsideOfView = -1801;
886 	errTopOfDocument = -1810;
887 	errTopOfBody = -1811;
888 	errEndOfDocument = -1812;
889 	errEndOfBody = -1813;
890 
891 
892 const
893 { Drag Manager error codes }
894 	badDragRefErr = -1850; { unknown drag reference }
895 	badDragItemErr = -1851; { unknown drag item reference }
896 	badDragFlavorErr = -1852; { unknown flavor type }
897 	duplicateFlavorErr = -1853; { flavor type already exists }
898 	cantGetFlavorErr = -1854; { error while trying to get flavor data }
899 	duplicateHandlerErr = -1855; { handler already exists }
900 	handlerNotFoundErr = -1856; { handler not found }
901 	dragNotAcceptedErr = -1857; { drag was not accepted by receiver }
902 	unsupportedForPlatformErr = -1858; { call is for PowerPC only }
903 	noSuitableDisplaysErr = -1859; { no displays support translucency }
904 	badImageRgnErr = -1860; { bad translucent image region }
905 	badImageErr = -1861; { bad translucent image PixMap }
906 	nonDragOriginatorErr = -1862; { illegal attempt at originator only data }
907 
908 
909 {QuickTime errors}
910 const
911 	couldNotResolveDataRef = -2000;
912 	badImageDescription = -2001;
913 	badPublicMovieAtom = -2002;
914 	cantFindHandler = -2003;
915 	cantOpenHandler = -2004;
916 	badComponentType = -2005;
917 	noMediaHandler = -2006;
918 	noDataHandler = -2007;
919 	invalidMedia = -2008;
920 	invalidTrack = -2009;
921 	invalidMovie = -2010;
922 	invalidSampleTable = -2011;
923 	invalidDataRef = -2012;
924 	invalidHandler = -2013;
925 	invalidDuration = -2014;
926 	invalidTime = -2015;
927 	cantPutPublicMovieAtom = -2016;
928 	badEditList = -2017;
929 	mediaTypesDontMatch = -2018;
930 	progressProcAborted = -2019;
931 	movieToolboxUninitialized = -2020;
932 	noRecordOfApp = movieToolboxUninitialized; { replica }
933 	wfFileNotFound = -2021;
934 	cantCreateSingleForkFile = -2022; { happens when file already exists }
935 	invalidEditState = -2023;
936 	nonMatchingEditState = -2024;
937 	staleEditState = -2025;
938 	userDataItemNotFound = -2026;
939 	maxSizeToGrowTooSmall = -2027;
940 	badTrackIndex = -2028;
941 	trackIDNotFound = -2029;
942 	trackNotInMovie = -2030;
943 	timeNotInTrack = -2031;
944 	timeNotInMedia = -2032;
945 	badEditIndex = -2033;
946 	internalQuickTimeError = -2034;
947 	cantEnableTrack = -2035;
948 	invalidRect = -2036;
949 	invalidSampleNum = -2037;
950 	invalidChunkNum = -2038;
951 	invalidSampleDescIndex = -2039;
952 	invalidChunkCache = -2040;
953 	invalidSampleDescription = -2041;
954 	dataNotOpenForRead = -2042;
955 	dataNotOpenForWrite = -2043;
956 	dataAlreadyOpenForWrite = -2044;
957 	dataAlreadyClosed = -2045;
958 	endOfDataReached = -2046;
959 	dataNoDataRef = -2047;
960 	noMovieFound = -2048;
961 	invalidDataRefContainer = -2049;
962 	badDataRefIndex = -2050;
963 	noDefaultDataRef = -2051;
964 	couldNotUseAnExistingSample = -2052;
965 	featureUnsupported = -2053;
966 	noVideoTrackInMovieErr = -2054; { QT for Windows error }
967 	noSoundTrackInMovieErr = -2055; { QT for Windows error }
968 	soundSupportNotAvailableErr = -2056; { QT for Windows error }
969 	unsupportedAuxiliaryImportData = -2057;
970 	auxiliaryExportDataUnavailable = -2058;
971 	samplesAlreadyInMediaErr = -2059;
972 	noSourceTreeFoundErr = -2060;
973 	sourceNotFoundErr = -2061;
974 	movieTextNotFoundErr = -2062;
975 	missingRequiredParameterErr = -2063;
976 	invalidSpriteWorldPropertyErr = -2064;
977 	invalidSpritePropertyErr = -2065;
978 	gWorldsNotSameDepthAndSizeErr = -2066;
979 	invalidSpriteIndexErr = -2067;
980 	invalidImageIndexErr = -2068;
981 	invalidSpriteIDErr = -2069;
982 
983 const
984 	internalComponentErr = -2070;
985 	notImplementedMusicOSErr = -2071;
986 	cantSendToSynthesizerOSErr = -2072;
987 	cantReceiveFromSynthesizerOSErr = -2073;
988 	illegalVoiceAllocationOSErr = -2074;
989 	illegalPartOSErr = -2075;
990 	illegalChannelOSErr = -2076;
991 	illegalKnobOSErr = -2077;
992 	illegalKnobValueOSErr = -2078;
993 	illegalInstrumentOSErr = -2079;
994 	illegalControllerOSErr = -2080;
995 	midiManagerAbsentOSErr = -2081;
996 	synthesizerNotRespondingOSErr = -2082;
997 	synthesizerOSErr = -2083;
998 	illegalNoteChannelOSErr = -2084;
999 	noteChannelNotAllocatedOSErr = -2085;
1000 	tunePlayerFullOSErr = -2086;
1001 	tuneParseOSErr = -2087;
1002 	noExportProcAvailableErr = -2089;
1003 	videoOutputInUseErr = -2090;
1004 
1005 const
1006 	componentDllLoadErr = -2091; { Windows specific errors (when component is loading)}
1007 	componentDllEntryNotFoundErr = -2092; { Windows specific errors (when component is loading)}
1008 	qtmlDllLoadErr = -2093; { Windows specific errors (when qtml is loading)}
1009 	qtmlDllEntryNotFoundErr = -2094; { Windows specific errors (when qtml is loading)}
1010 	qtmlUninitialized = -2095;
1011 	unsupportedOSErr = -2096;
1012 	unsupportedProcessorErr = -2097;
1013 	componentNotThreadSafeErr = -2098; { component is not thread-safe}
1014 
1015 const
1016 	cannotFindAtomErr = -2101;
1017 	notLeafAtomErr = -2102;
1018 	atomsNotOfSameTypeErr = -2103;
1019 	atomIndexInvalidErr = -2104;
1020 	duplicateAtomTypeAndIDErr = -2105;
1021 	invalidAtomErr = -2106;
1022 	invalidAtomContainerErr = -2107;
1023 	invalidAtomTypeErr = -2108;
1024 	cannotBeLeafAtomErr = -2109;
1025 	pathTooLongErr = -2110;
1026 	emptyPathErr = -2111;
1027 	noPathMappingErr = -2112;
1028 	pathNotVerifiedErr = -2113;
1029 	unknownFormatErr = -2114;
1030 	wackBadFileErr = -2115;
1031 	wackForkNotFoundErr = -2116;
1032 	wackBadMetaDataErr = -2117;
1033 	qfcbNotFoundErr = -2118;
1034 	qfcbNotCreatedErr = -2119;
1035 	AAPNotCreatedErr = -2120;
1036 	AAPNotFoundErr = -2121;
1037 	ASDBadHeaderErr = -2122;
1038 	ASDBadForkErr = -2123;
1039 	ASDEntryNotFoundErr = -2124;
1040 	fileOffsetTooBigErr = -2125;
1041 	notAllowedToSaveMovieErr = -2126;
1042 	qtNetworkAlreadyAllocatedErr = -2127;
1043 	urlDataHHTTPProtocolErr = -2129;
1044 	urlDataHHTTPNoNetDriverErr = -2130;
1045 	urlDataHHTTPURLErr = -2131;
1046 	urlDataHHTTPRedirectErr = -2132;
1047 	urlDataHFTPProtocolErr = -2133;
1048 	urlDataHFTPShutdownErr = -2134;
1049 	urlDataHFTPBadUserErr = -2135;
1050 	urlDataHFTPBadPasswordErr = -2136;
1051 	urlDataHFTPServerErr = -2137;
1052 	urlDataHFTPDataConnectionErr = -2138;
1053 	urlDataHFTPNoDirectoryErr = -2139;
1054 	urlDataHFTPQuotaErr = -2140;
1055 	urlDataHFTPPermissionsErr = -2141;
1056 	urlDataHFTPFilenameErr = -2142;
1057 	urlDataHFTPNoNetDriverErr = -2143;
1058 	urlDataHFTPBadNameListErr = -2144;
1059 	urlDataHFTPNeedPasswordErr = -2145;
1060 	urlDataHFTPNoPasswordErr = -2146;
1061 	urlDataHFTPServerDisconnectedErr = -2147;
1062 	urlDataHFTPURLErr = -2148;
1063 	notEnoughDataErr = -2149;
1064 	qtActionNotHandledErr = -2157;
1065 	qtXMLParseErr = -2158;
1066 	qtXMLApplicationErr = -2159;
1067 
1068 
1069 const
1070 	digiUnimpErr = -2201; { feature unimplemented }
1071 	qtParamErr = -2202; { bad input parameter (out of range, etc) }
1072 	matrixErr = -2203; { bad matrix, digitizer did nothing }
1073 	notExactMatrixErr = -2204; { warning of bad matrix, digitizer did its best }
1074 	noMoreKeyColorsErr = -2205; { all key indexes in use }
1075 	notExactSizeErr = -2206; { Can�t do exact size requested }
1076 	badDepthErr = -2207; { Can�t digitize into this depth }
1077 	noDMAErr = -2208; { Can�t do DMA digitizing (i.e. can't go to requested dest }
1078 	badCallOrderErr = -2209; { Usually due to a status call being called prior to being setup first }
1079 
1080 
1081 {  Kernel Error Codes  }
1082 const
1083 	kernelIncompleteErr = -2401;
1084 	kernelCanceledErr = -2402;
1085 	kernelOptionsErr = -2403;
1086 	kernelPrivilegeErr = -2404;
1087 	kernelUnsupportedErr = -2405;
1088 	kernelObjectExistsErr = -2406;
1089 	kernelWritePermissionErr = -2407;
1090 	kernelReadPermissionErr = -2408;
1091 	kernelExecutePermissionErr = -2409;
1092 	kernelDeletePermissionErr = -2410;
1093 	kernelExecutionLevelErr = -2411;
1094 	kernelAttributeErr = -2412;
1095 	kernelAsyncSendLimitErr = -2413;
1096 	kernelAsyncReceiveLimitErr = -2414;
1097 	kernelTimeoutErr = -2415;
1098 	kernelInUseErr = -2416;
1099 	kernelTerminatedErr = -2417;
1100 	kernelExceptionErr = -2418;
1101 	kernelIDErr = -2419;
1102 	kernelAlreadyFreeErr = -2421;
1103 	kernelReturnValueErr = -2422;
1104 	kernelUnrecoverableErr = -2499;
1105 
1106 
1107 const
1108 { Text Services Mgr error codes }
1109 	tsmComponentNoErr = 0;    { component result = no error }
1110 	tsmUnsupScriptLanguageErr = -2500;
1111 	tsmInputMethodNotFoundErr = -2501;
1112 	tsmNotAnAppErr = -2502; { not an application error }
1113 	tsmAlreadyRegisteredErr = -2503; { want to register again error }
1114 	tsmNeverRegisteredErr = -2504; { app never registered error (not TSM aware) }
1115 	tsmInvalidDocIDErr = -2505; { invalid TSM documentation id }
1116 	tsmTSMDocBusyErr = -2506; { document is still active }
1117 	tsmDocNotActiveErr = -2507; { document is NOT active }
1118 	tsmNoOpenTSErr = -2508; { no open text service }
1119 	tsmCantOpenComponentErr = -2509; { can�t open the component }
1120 	tsmTextServiceNotFoundErr = -2510; { no text service found }
1121 	tsmDocumentOpenErr = -2511; { there are open documents }
1122 	tsmUseInputWindowErr = -2512; { not TSM aware because we are using input window }
1123 	tsmTSHasNoMenuErr = -2513; { the text service has no menu }
1124 	tsmTSNotOpenErr = -2514; { text service is not open }
1125 	tsmComponentAlreadyOpenErr = -2515; { text service already opened for the document }
1126 	tsmInputMethodIsOldErr = -2516; { returned by GetDefaultInputMethod }
1127 	tsmScriptHasNoIMErr = -2517; { script has no imput method or is using old IM }
1128 	tsmUnsupportedTypeErr = -2518; { unSupported interface type error }
1129 	tsmUnknownErr = -2519; { any other errors }
1130 	tsmInvalidContext = -2520; { Invalid TSMContext specified in call }
1131 	tsmNoHandler = -2521; { No Callback Handler exists for callback }
1132 	tsmNoMoreTokens = -2522; { No more tokens are available for the source text }
1133 	tsmNoStem = -2523; { No stem exists for the token }
1134 	tsmDefaultIsNotInputMethodErr = -2524; { Current Input source is KCHR or uchr, not Input Method  (GetDefaultInputMethod) }
1135 	tsmDocPropertyNotFoundErr = -2528; { Requested TSM Document property not found }
1136 	tsmDocPropertyBufferTooSmallErr = -2529; { Buffer passed in for property value is too small }
1137 	tsmCantChangeForcedClassStateErr = -2530; { Enabled state of a TextService class has been forced and cannot be changed }
1138 	tsmComponentPropertyUnsupportedErr = -2531; { Component property unsupported (or failed to be set) }
1139 	tsmComponentPropertyNotFoundErr = -2532; { Component property not found }
1140 	tsmInputModeChangeFailedErr = -2533; { Input Mode not changed }
1141 
1142 
1143 const
1144 { Mixed Mode error codes }
1145 	mmInternalError = -2526;
1146 
1147 { NameRegistry error codes }
1148 const
1149 	nrLockedErr = -2536;
1150 	nrNotEnoughMemoryErr = -2537;
1151 	nrInvalidNodeErr = -2538;
1152 	nrNotFoundErr = -2539;
1153 	nrNotCreatedErr = -2540;
1154 	nrNameErr = -2541;
1155 	nrNotSlotDeviceErr = -2542;
1156 	nrDataTruncatedErr = -2543;
1157 	nrPowerErr = -2544;
1158 	nrPowerSwitchAbortErr = -2545;
1159 	nrTypeMismatchErr = -2546;
1160 	nrNotModifiedErr = -2547;
1161 	nrOverrunErr = -2548;
1162 	nrResultCodeBase = -2549;
1163 	nrPathNotFound = -2550; { a path component lookup failed }
1164 	nrPathBufferTooSmall = -2551; { buffer for path is too small }
1165 	nrInvalidEntryIterationOp = -2552; { invalid entry iteration operation }
1166 	nrPropertyAlreadyExists = -2553; { property already exists }
1167 	nrIterationDone = -2554; { iteration operation is done }
1168 	nrExitedIteratorScope = -2555; { outer scope of iterator was exited }
1169 	nrTransactionAborted = -2556; { transaction was aborted }
1170 	nrCallNotSupported = -2557; { This call is not available or supported on this machine }
1171 
1172 { Icon Services error codes }
1173 const
1174 	invalidIconRefErr = -2580; { The icon ref is not valid }
1175 	noSuchIconErr = -2581; { The requested icon could not be found }
1176 	noIconDataAvailableErr = -2582; { The necessary icon data is not available }
1177 
1178 
1179 {
1180     Dynamic AppleScript errors:
1181 
1182     These errors result from data-dependent conditions and are typically
1183     signaled at runtime.
1184 }
1185 const
1186 	errOSACantCoerce = errAECoercionFail; { Signaled when a value can't be coerced to the desired type. }
1187 	errOSACantAccess = errAENoSuchObject; { Signaled when an object is not found in a container}
1188 	errOSACantAssign = -10006; { Signaled when an object cannot be set in a container.}
1189 	errOSAGeneralError = -2700; { Signaled by user scripts or applications when no actual error code is to be returned.}
1190 	errOSADivideByZero = -2701; { Signaled when there is an attempt to divide by zero}
1191 	errOSANumericOverflow = -2702; { Signaled when integer or real value is too large to be represented}
1192 	errOSACantLaunch = -2703; { Signaled when application can't be launched or when it is remote and program linking is not enabled}
1193 	errOSAAppNotHighLevelEventAware = -2704; { Signaled when an application can't respond to AppleEvents}
1194 	errOSACorruptTerminology = -2705; { Signaled when an application's terminology resource is not readable}
1195 	errOSAStackOverflow = -2706; { Signaled when the runtime stack overflows}
1196 	errOSAInternalTableOverflow = -2707; { Signaled when a runtime internal data structure overflows}
1197 	errOSADataBlockTooLarge = -2708; { Signaled when an intrinsic limitation is exceeded for the size of a value or data structure.}
1198 	errOSACantGetTerminology = -2709;
1199 	errOSACantCreate = -2710;
1200 
1201 {
1202     Component-specific dynamic script errors:
1203 
1204     The range -2720 thru -2739 is reserved for component-specific runtime errors.
1205     (Note that error codes from different scripting components in this range will
1206     overlap.)
1207 }
1208 {
1209     Static AppleScript errors:
1210 
1211     These errors comprise what are commonly thought of as parse and compile-
1212     time errors.  However, in a dynamic system (e.g. AppleScript) any or all
1213     of these may also occur at runtime.
1214 }
1215 const
1216 	errOSATypeError = errAEWrongDataType;
1217 	OSAMessageNotUnderstood = errAEEventNotHandled; { Signaled when a message was sent to an object that didn't handle it}
1218 	OSAUndefinedHandler = errAEHandlerNotFound; { Signaled when a function to be returned doesn't exist. }
1219 	OSAIllegalAccess = errAEAccessorNotFound; { Signaled when a container can never have the requested object}
1220 	OSAIllegalIndex = errAEIllegalIndex; { Signaled when index was out of range. Specialization of errOSACantAccess}
1221 	OSAIllegalRange = errAEImpossibleRange; { Signaled when a range is screwy. Specialization of errOSACantAccess}
1222 	OSAIllegalAssign = -10003; { Signaled when an object can never be set in a container}
1223 	OSASyntaxError = -2740; { Signaled when a syntax error occurs. (e.g. "Syntax error" or "<this> can't go after <that>")}
1224 	OSASyntaxTypeError = -2741; { Signaled when another form of syntax was expected. (e.g. "expected a <type> but found <this>")}
1225 	OSATokenTooLong = -2742; { Signaled when a name or number is too long to be parsed}
1226 	OSAMissingParameter = errAEDescNotFound; { Signaled when a parameter is missing for a function invocation}
1227 	OSAParameterMismatch = errAEWrongNumberArgs; { Signaled when function is called with the wrong number of parameters, or a parameter pattern cannot be matched}
1228 	OSADuplicateParameter = -2750; { Signaled when a formal parameter, local variable, or instance variable is specified more than once}
1229 	OSADuplicateProperty = -2751; { Signaled when a formal parameter, local variable, or instance variable is specified more than once.}
1230 	OSADuplicateHandler = -2752; { Signaled when more than one handler is defined with the same name in a scope where the language doesn't allow it}
1231 	OSAUndefinedVariable = -2753; { Signaled when a variable is accessed that has no value}
1232 	OSAInconsistentDeclarations = -2754; { Signaled when a variable is declared inconsistently in the same scope, such as both local and global}
1233 	OSAControlFlowError = -2755; { Signaled when illegal control flow occurs in an application (no catcher for throw, non-lexical loop exit, etc.)}
1234 
1235 {
1236     Component-specific AppleScript static errors:
1237 
1238     The range -2760 thru -2779 is reserved for component-specific parsing and
1239     compile-time errors. (Note that error codes from different scripting
1240     components in this range will overlap.)
1241 }
1242 {
1243     Dialect-specific AppleScript errors:
1244 
1245     The range -2780 thru -2799 is reserved for dialect specific error codes for
1246     scripting components that support dialects. (Note that error codes from
1247     different scripting components in this range will overlap, as well as error
1248     codes from different dialects in the same scripting component.)
1249 }
1250 
1251 {*************************************************************************
1252     Apple Script Error Codes
1253 *************************************************************************}
1254 { Runtime errors: }
1255 const
1256 	errASCantConsiderAndIgnore = -2720;
1257 	errASCantCompareMoreThan32k = -2721; { Parser/Compiler errors: }
1258 	errASTerminologyNestingTooDeep = -2760;
1259 	errASIllegalFormalParameter = -2761;
1260 	errASParameterNotForEvent = -2762;
1261 	errASNoResultReturned = -2763; {    The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) }
1262 	errASInconsistentNames = -2780; {    English errors: }
1263 
1264 
1265 { The preferred spelling for Code Fragment Manager errors:}
1266 const
1267 	cfragFirstErrCode = -2800; { The first value in the range of CFM errors.}
1268 	cfragContextIDErr = -2800; { The context ID was not valid.}
1269 	cfragConnectionIDErr = -2801; { The connection ID was not valid.}
1270 	cfragNoSymbolErr = -2802; { The specified symbol was not found.}
1271 	cfragNoSectionErr = -2803; { The specified section was not found.}
1272 	cfragNoLibraryErr = -2804; { The named library was not found.}
1273 	cfragDupRegistrationErr = -2805; { The registration name was already in use.}
1274 	cfragFragmentFormatErr = -2806; { A fragment's container format is unknown.}
1275 	cfragUnresolvedErr = -2807; { A fragment had "hard" unresolved imports.}
1276 	cfragNoPositionErr = -2808; { The registration insertion point was not found.}
1277 	cfragNoPrivateMemErr = -2809; { Out of memory for internal bookkeeping.}
1278 	cfragNoClientMemErr = -2810; { Out of memory for fragment mapping or section instances.}
1279 	cfragNoIDsErr = -2811; { No more CFM IDs for contexts, connections, etc.}
1280 	cfragInitOrderErr = -2812; { }
1281 	cfragImportTooOldErr = -2813; { An import library was too old for a client.}
1282 	cfragImportTooNewErr = -2814; { An import library was too new for a client.}
1283 	cfragInitLoopErr = -2815; { Circularity in required initialization order.}
1284 	cfragInitAtBootErr = -2816; { A boot library has an initialization function.  (System 7 only)}
1285 	cfragLibConnErr = -2817; { }
1286 	cfragCFMStartupErr = -2818; { Internal error during CFM initialization.}
1287 	cfragCFMInternalErr = -2819; { An internal inconstistancy has been detected.}
1288 	cfragFragmentCorruptErr = -2820; { A fragment's container was corrupt (known format).}
1289 	cfragInitFunctionErr = -2821; { A fragment's initialization routine returned an error.}
1290 	cfragNoApplicationErr = -2822; { No application member found in the cfrg resource.}
1291 	cfragArchitectureErr = -2823; { A fragment has an unacceptable architecture.}
1292 	cfragFragmentUsageErr = -2824; { A semantic error in usage of the fragment.}
1293 	cfragFileSizeErr = -2825; { A file was too large to be mapped.}
1294 	cfragNotClosureErr = -2826; { The closure ID was actually a connection ID.}
1295 	cfragNoRegistrationErr = -2827; { The registration name was not found.}
1296 	cfragContainerIDErr = -2828; { The fragment container ID was not valid.}
1297 	cfragClosureIDErr = -2829; { The closure ID was not valid.}
1298 	cfragAbortClosureErr = -2830; { Used by notification handlers to abort a closure.}
1299 	cfragOutputLengthErr = -2831; { An output parameter is too small to hold the value.}
1300 	cfragMapFileErr = -2851; { A file could not be mapped.}
1301 	cfragExecFileRefErr = -2854; { Bundle does not have valid executable file.}
1302 	cfragStdFolderErr = -2855; { Could not find standard CFM folder.}
1303 	cfragRsrcForkErr = -2856; { Resource fork could not be opened.}
1304 	cfragCFragRsrcErr = -2857; { 'cfrg' resource could not be loaded.}
1305 	cfragLastErrCode = -2899; { The last value in the range of CFM errors.}
1306 
1307 const
1308 { Reserved values for internal "warnings".}
1309 	cfragFirstReservedCode = -2897;
1310 	cfragReservedCode_3 = -2897;
1311 	cfragReservedCode_2 = -2898;
1312 	cfragReservedCode_1 = -2899;
1313 
1314 {$ifc OLDROUTINENAMES}
1315 { The old spelling for Code Fragment Manager errors, kept for compatibility:}
1316 const
1317 	fragContextNotFound = cfragContextIDErr;
1318 	fragConnectionIDNotFound = cfragConnectionIDErr;
1319 	fragSymbolNotFound = cfragNoSymbolErr;
1320 	fragSectionNotFound = cfragNoSectionErr;
1321 	fragLibNotFound = cfragNoLibraryErr;
1322 	fragDupRegLibName = cfragDupRegistrationErr;
1323 	fragFormatUnknown = cfragFragmentFormatErr;
1324 	fragHadUnresolveds = cfragUnresolvedErr;
1325 	fragNoMem = cfragNoPrivateMemErr;
1326 	fragNoAddrSpace = cfragNoClientMemErr;
1327 	fragNoContextIDs = cfragNoIDsErr;
1328 	fragObjectInitSeqErr = cfragInitOrderErr;
1329 	fragImportTooOld = cfragImportTooOldErr;
1330 	fragImportTooNew = cfragImportTooNewErr;
1331 	fragInitLoop = cfragInitLoopErr;
1332 	fragInitRtnUsageErr = cfragInitAtBootErr;
1333 	fragLibConnErr = cfragLibConnErr;
1334 	fragMgrInitErr = cfragCFMStartupErr;
1335 	fragConstErr = cfragCFMInternalErr;
1336 	fragCorruptErr = cfragFragmentCorruptErr;
1337 	fragUserInitProcErr = cfragInitFunctionErr;
1338 	fragAppNotFound = cfragNoApplicationErr;
1339 	fragArchError = cfragArchitectureErr;
1340 	fragInvalidFragmentUsage = cfragFragmentUsageErr;
1341 	fragLastErrCode = cfragLastErrCode;
1342 
1343 {$endc} { OLDROUTINENAMES }
1344 
1345 {Component Manager & component errors}
1346 const
1347 	invalidComponentID = -3000;
1348 	validInstancesExist = -3001;
1349 	componentNotCaptured = -3002;
1350 	componentDontRegister = -3003;
1351 	unresolvedComponentDLLErr = -3004;
1352 	retryComponentRegistrationErr = -3005;
1353 
1354 {Translation manager & Translation components}
1355 const
1356 	invalidTranslationPathErr = -3025; {Source type to destination type not a valid path}
1357 	couldNotParseSourceFileErr = -3026; {Source document does not contain source type}
1358 	noTranslationPathErr = -3030;
1359 	badTranslationSpecErr = -3031;
1360 	noPrefAppErr = -3032;
1361 
1362 const
1363 	buf2SmallErr = -3101;
1364 	noMPPErr = -3102;
1365 	ckSumErr = -3103;
1366 	extractErr = -3104;
1367 	readQErr = -3105;
1368 	atpLenErr = -3106;
1369 	atpBadRsp = -3107;
1370 	recNotFnd = -3108;
1371 	sktClosedErr = -3109;
1372 
1373 
1374 { OpenTransport errors}
1375 const
1376 	kOTNoError = 0;    { No Error occurred                    }
1377 	kOTOutOfMemoryErr = -3211; { OT ran out of memory, may be a temporary      }
1378 	kOTNotFoundErr = -3201; { OT generic not found error               }
1379 	kOTDuplicateFoundErr = -3216; { OT generic duplicate found error             }
1380 	kOTBadAddressErr = -3150; { XTI2OSStatus(TBADADDR) A Bad address was specified          }
1381 	kOTBadOptionErr = -3151; { XTI2OSStatus(TBADOPT) A Bad option was specified             }
1382 	kOTAccessErr = -3152; { XTI2OSStatus(TACCES) Missing access permission           }
1383 	kOTBadReferenceErr = -3153; { XTI2OSStatus(TBADF) Bad provider reference               }
1384 	kOTNoAddressErr = -3154; { XTI2OSStatus(TNOADDR) No address was specified           }
1385 	kOTOutStateErr = -3155; { XTI2OSStatus(TOUTSTATE) Call issued in wrong state           }
1386 	kOTBadSequenceErr = -3156; { XTI2OSStatus(TBADSEQ) Sequence specified does not exist         }
1387 	kOTSysErrorErr = -3157; { XTI2OSStatus(TSYSERR) A system error occurred            }
1388 	kOTLookErr = -3158; { XTI2OSStatus(TLOOK) An event occurred - call Look()         }
1389 	kOTBadDataErr = -3159; { XTI2OSStatus(TBADDATA) An illegal amount of data was specified }
1390 	kOTBufferOverflowErr = -3160; { XTI2OSStatus(TBUFOVFLW) Passed buffer not big enough          }
1391 	kOTFlowErr = -3161; { XTI2OSStatus(TFLOW) Provider is flow-controlled          }
1392 	kOTNoDataErr = -3162; { XTI2OSStatus(TNODATA) No data available for reading          }
1393 	kOTNoDisconnectErr = -3163; { XTI2OSStatus(TNODIS) No disconnect indication available         }
1394 	kOTNoUDErrErr = -3164; { XTI2OSStatus(TNOUDERR) No Unit Data Error indication available }
1395 	kOTBadFlagErr = -3165; { XTI2OSStatus(TBADFLAG) A Bad flag value was supplied          }
1396 	kOTNoReleaseErr = -3166; { XTI2OSStatus(TNOREL) No orderly release indication available   }
1397 	kOTNotSupportedErr = -3167; { XTI2OSStatus(TNOTSUPPORT) Command is not supported           }
1398 	kOTStateChangeErr = -3168; { XTI2OSStatus(TSTATECHNG) State is changing - try again later     }
1399 	kOTNoStructureTypeErr = -3169; { XTI2OSStatus(TNOSTRUCTYPE) Bad structure type requested for OTAlloc    }
1400 	kOTBadNameErr = -3170; { XTI2OSStatus(TBADNAME) A bad endpoint name was supplied         }
1401 	kOTBadQLenErr = -3171; { XTI2OSStatus(TBADQLEN) A Bind to an in-use addr with qlen > 0   }
1402 	kOTAddressBusyErr = -3172; { XTI2OSStatus(TADDRBUSY) Address requested is already in use       }
1403 	kOTIndOutErr = -3173; { XTI2OSStatus(TINDOUT) Accept failed because of pending listen  }
1404 	kOTProviderMismatchErr = -3174; { XTI2OSStatus(TPROVMISMATCH) Tried to accept on incompatible endpoint   }
1405 	kOTResQLenErr = -3175; { XTI2OSStatus(TRESQLEN)                            }
1406 	kOTResAddressErr = -3176; { XTI2OSStatus(TRESADDR)                            }
1407 	kOTQFullErr = -3177; { XTI2OSStatus(TQFULL)                          }
1408 	kOTProtocolErr = -3178; { XTI2OSStatus(TPROTO) An unspecified provider error occurred       }
1409 	kOTBadSyncErr = -3179; { XTI2OSStatus(TBADSYNC) A synchronous call at interrupt time       }
1410 	kOTCanceledErr = -3180; { XTI2OSStatus(TCANCELED) The command was cancelled            }
1411 	kEPERMErr = -3200; { Permission denied            }
1412 	kENOENTErr = -3201; { No such file or directory       }
1413 	kENORSRCErr = -3202; { No such resource               }
1414 	kEINTRErr = -3203; { Interrupted system service        }
1415 	kEIOErr = -3204; { I/O error                 }
1416 	kENXIOErr = -3205; { No such device or address       }
1417 	kEBADFErr = -3208; { Bad file number                 }
1418 	kEAGAINErr = -3210; { Try operation again later       }
1419 	kENOMEMErr = -3211; { Not enough space               }
1420 	kEACCESErr = -3212; { Permission denied            }
1421 	kEFAULTErr = -3213; { Bad address                   }
1422 	kEBUSYErr = -3215; { Device or resource busy          }
1423 	kEEXISTErr = -3216; { File exists                   }
1424 	kENODEVErr = -3218; { No such device               }
1425 	kEINVALErr = -3221; { Invalid argument               }
1426 	kENOTTYErr = -3224; { Not a character device          }
1427 	kEPIPEErr = -3231; { Broken pipe                   }
1428 	kERANGEErr = -3233; { Message size too large for STREAM  }
1429 	kEWOULDBLOCKErr = -3234; { Call would block, so was aborted     }
1430 	kEDEADLKErr = -3234; { or a deadlock would occur       }
1431 	kEALREADYErr = -3236; {                          }
1432 	kENOTSOCKErr = -3237; { Socket operation on non-socket     }
1433 	kEDESTADDRREQErr = -3238; { Destination address required      }
1434 	kEMSGSIZEErr = -3239; { Message too long               }
1435 	kEPROTOTYPEErr = -3240; { Protocol wrong type for socket     }
1436 	kENOPROTOOPTErr = -3241; { Protocol not available          }
1437 	kEPROTONOSUPPORTErr = -3242; { Protocol not supported          }
1438 	kESOCKTNOSUPPORTErr = -3243; { Socket type not supported       }
1439 	kEOPNOTSUPPErr = -3244; { Operation not supported on socket  }
1440 	kEADDRINUSEErr = -3247; { Address already in use          }
1441 	kEADDRNOTAVAILErr = -3248; { Can't assign requested address     }
1442 	kENETDOWNErr = -3249; { Network is down                 }
1443 	kENETUNREACHErr = -3250; { Network is unreachable          }
1444 	kENETRESETErr = -3251; { Network dropped connection on reset    }
1445 	kECONNABORTEDErr = -3252; { Software caused connection abort     }
1446 	kECONNRESETErr = -3253; { Connection reset by peer          }
1447 	kENOBUFSErr = -3254; { No buffer space available       }
1448 	kEISCONNErr = -3255; { Socket is already connected         }
1449 	kENOTCONNErr = -3256; { Socket is not connected          }
1450 	kESHUTDOWNErr = -3257; { Can't send after socket shutdown     }
1451 	kETOOMANYREFSErr = -3258; { Too many references: can't splice  }
1452 	kETIMEDOUTErr = -3259; { Connection timed out             }
1453 	kECONNREFUSEDErr = -3260; { Connection refused           }
1454 	kEHOSTDOWNErr = -3263; { Host is down                }
1455 	kEHOSTUNREACHErr = -3264; { No route to host               }
1456 	kEPROTOErr = -3269; { ��� fill out missing codes ���     }
1457 	kETIMEErr = -3270; {                          }
1458 	kENOSRErr = -3271; {                          }
1459 	kEBADMSGErr = -3272; {                          }
1460 	kECANCELErr = -3273; {                          }
1461 	kENOSTRErr = -3274; {                          }
1462 	kENODATAErr = -3275; {                          }
1463 	kEINPROGRESSErr = -3276; {                          }
1464 	kESRCHErr = -3277; {                          }
1465 	kENOMSGErr = -3278; {                          }
1466 	kOTClientNotInittedErr = -3279; {                          }
1467 	kOTPortHasDiedErr = -3280; {                          }
1468 	kOTPortWasEjectedErr = -3281; {                          }
1469 	kOTBadConfigurationErr = -3282; {                          }
1470 	kOTConfigurationChangedErr = -3283; {                          }
1471 	kOTUserRequestedErr = -3284; {                          }
1472 	kOTPortLostConnection = -3285; {                          }
1473 
1474 
1475 { Additional Quickdraw errors in the assigned range -3950 .. -3999}
1476 const
1477 	kQDNoPalette = -3950; { PaletteHandle is NULL}
1478 	kQDNoColorHWCursorSupport = -3951; { CGSSystemSupportsColorHardwareCursors() returned false}
1479 	kQDCursorAlreadyRegistered = -3952; { can be returned from QDRegisterNamedPixMapCursor()}
1480 	kQDCursorNotRegistered = -3953; { can be returned from QDSetNamedPixMapCursor()}
1481 	kQDCorruptPICTDataErr = -3954;
1482 
1483 
1484 { Color Picker errors}
1485 const
1486 	firstPickerError = -4000;
1487 	invalidPickerType = firstPickerError;
1488 	requiredFlagsDontMatch = -4001;
1489 	pickerResourceError = -4002;
1490 	cantLoadPicker = -4003;
1491 	cantCreatePickerWindow = -4004;
1492 	cantLoadPackage = -4005;
1493 	pickerCantLive = -4006;
1494 	colorSyncNotInstalled = -4007;
1495 	badProfileError = -4008;
1496 	noHelpForItem = -4009;
1497 
1498 
1499 { NSL error codes}
1500 const
1501 	kNSL68kContextNotSupported = -4170; { no 68k allowed}
1502 	kNSLSchedulerError = -4171; { A custom thread routine encountered an error}
1503 	kNSLBadURLSyntax = -4172; { URL contains illegal characters}
1504 	kNSLNoCarbonLib = -4173;
1505 	kNSLUILibraryNotAvailable = -4174; { The NSL UI Library needs to be in the Extensions Folder}
1506 	kNSLNotImplementedYet = -4175;
1507 	kNSLErrNullPtrError = -4176;
1508 	kNSLSomePluginsFailedToLoad = -4177; { (one or more plugins failed to load, but at least one did load; this error isn't fatal)}
1509 	kNSLNullNeighborhoodPtr = -4178; { (client passed a null neighborhood ptr)}
1510 	kNSLNoPluginsForSearch = -4179; { (no plugins will respond to search request; bad protocol(s)?)}
1511 	kNSLSearchAlreadyInProgress = -4180; { (you can only have one ongoing search per clientRef)}
1512 	kNSLNoPluginsFound = -4181; { (manager didn't find any valid plugins to load)}
1513 	kNSLPluginLoadFailed = -4182; { (manager unable to load one of the plugins)}
1514 	kNSLBadProtocolTypeErr = -4183; { (client is trying to add a null protocol type)}
1515 	kNSLNullListPtr = -4184; { (client is trying to add items to a nil list)}
1516 	kNSLBadClientInfoPtr = -4185; { (nil ClientAsyncInfoPtr; no reference available)}
1517 	kNSLCannotContinueLookup = -4186; { (Can't continue lookup; error or bad state)}
1518 	kNSLBufferTooSmallForData = -4187; { (Client buffer too small for data from plugin)}
1519 	kNSLNoContextAvailable = -4188; { (ContinueLookup function ptr invalid)}
1520 	kNSLRequestBufferAlreadyInList = -4189;
1521 	kNSLInvalidPluginSpec = -4190;
1522 	kNSLNoSupportForService = -4191;
1523 	kNSLBadNetConnection = -4192;
1524 	kNSLBadDataTypeErr = -4193;
1525 	kNSLBadServiceTypeErr = -4194;
1526 	kNSLBadReferenceErr = -4195;
1527 	kNSLNoElementsInList = -4196;
1528 	kNSLInsufficientOTVer = -4197;
1529 	kNSLInsufficientSysVer = -4198;
1530 	kNSLNotInitialized = -4199;
1531 	kNSLInitializationFailed = -4200; { UNABLE TO INITIALIZE THE MANAGER!!!!! DO NOT CONTINUE!!!!}
1532 
1533 
1534 { desktop printing error codes}
1535 const
1536 	kDTPHoldJobErr = -4200;
1537 	kDTPStopQueueErr = -4201;
1538 	kDTPTryAgainErr = -4202;
1539 	kDTPAbortJobErr = 128;
1540 
1541 
1542 { ColorSync Result codes }
1543 const
1544 { Profile Access Errors }
1545 	cmElementTagNotFound = -4200;
1546 	cmIndexRangeErr = -4201; { Tag index out of range }
1547 	cmCantDeleteElement = -4202;
1548 	cmFatalProfileErr = -4203;
1549 	cmInvalidProfile = -4204; { A Profile must contain a 'cs1 ' tag to be valid }
1550 	cmInvalidProfileLocation = -4205; { Operation not supported for this profile location }
1551 	cmCantCopyModifiedV1Profile = -4215; { Illegal to copy version 1 profiles that have been modified }
1552                                         { Profile Search Errors }
1553 	cmInvalidSearch = -4206; { Bad Search Handle }
1554 	cmSearchError = -4207;
1555 	cmErrIncompatibleProfile = -4208; { Other ColorSync Errors }
1556 	cmInvalidColorSpace = -4209; { Profile colorspace does not match bitmap type }
1557 	cmInvalidSrcMap = -4210; { Source pix/bit map was invalid }
1558 	cmInvalidDstMap = -4211; { Destination pix/bit map was invalid }
1559 	cmNoGDevicesError = -4212; { Begin/End Matching -- no gdevices available }
1560 	cmInvalidProfileComment = -4213; { Bad Profile comment during drawpicture }
1561 	cmRangeOverFlow = -4214; { Color conversion warning that some output color values over/underflowed and were clipped }
1562 	cmNamedColorNotFound = -4216; { NamedColor not found }
1563 	cmCantGamutCheckError = -4217; { Gammut checking not supported by this ColorWorld }
1564 
1565 { new Folder Manager error codes }
1566 const
1567 	badFolderDescErr = -4270;
1568 	duplicateFolderDescErr = -4271;
1569 	noMoreFolderDescErr = -4272;
1570 	invalidFolderTypeErr = -4273;
1571 	duplicateRoutingErr = -4274;
1572 	routingNotFoundErr = -4275;
1573 	badRoutingSizeErr = -4276;
1574 
1575 
1576 { Core Foundation errors}
1577 const
1578 	coreFoundationUnknownErr = -4960;
1579 
1580 { CoreEndian error codes.  These can be returned by Flippers. }
1581 const
1582 	errCoreEndianDataTooShortForFormat = -4940;
1583 	errCoreEndianDataTooLongForFormat = -4941;
1584 	errCoreEndianDataDoesNotMatchFormat = -4942;
1585 
1586 
1587 { ScrapMgr error codes (CarbonLib 1.0 and later)}
1588 const
1589 	internalScrapErr = -4988;
1590 	duplicateScrapFlavorErr = -4989;
1591 	badScrapRefErr = -4990;
1592 	processStateIncorrectErr = -4991;
1593 	scrapPromiseNotKeptErr = -4992;
1594 	noScrapPromiseKeeperErr = -4993;
1595 	nilScrapFlavorDataErr = -4994;
1596 	scrapFlavorFlagsMismatchErr = -4995;
1597 	scrapFlavorSizeMismatchErr = -4996;
1598 	illegalScrapFlavorFlagsErr = -4997;
1599 	illegalScrapFlavorTypeErr = -4998;
1600 	illegalScrapFlavorSizeErr = -4999;
1601 	scrapFlavorNotFoundErr = -102; { == noTypeErr}
1602 	needClearScrapErr = -100;  { == noScrapErr}
1603 
1604 
1605 const
1606 {  AFP Protocol Errors }
1607 	afpAccessDenied = -5000; { Insufficient access privileges for operation }
1608 	afpAuthContinue = -5001; { Further information required to complete AFPLogin call }
1609 	afpBadUAM = -5002; { Unknown user authentication method specified }
1610 	afpBadVersNum = -5003; { Unknown AFP protocol version number specified }
1611 	afpBitmapErr = -5004; { Bitmap contained bits undefined for call }
1612 	afpCantMove = -5005; { Move destination is offspring of source, or root was specified }
1613 	afpDenyConflict = -5006; { Specified open/deny modes conflict with current open modes }
1614 	afpDirNotEmpty = -5007; { Cannot delete non-empty directory }
1615 	afpDiskFull = -5008; { Insufficient free space on volume for operation }
1616 	afpEofError = -5009; { Read beyond logical end-of-file }
1617 	afpFileBusy = -5010; { Cannot delete an open file }
1618 	afpFlatVol = -5011; { Cannot create directory on specified volume }
1619 	afpItemNotFound = -5012; { Unknown UserName/UserID or missing comment/APPL entry }
1620 	afpLockErr = -5013; { Some or all of requested range is locked by another user }
1621 	afpMiscErr = -5014; { Unexpected error encountered during execution }
1622 	afpNoMoreLocks = -5015; { Maximum lock limit reached }
1623 	afpNoServer = -5016; { Server not responding }
1624 	afpObjectExists = -5017; { Specified destination file or directory already exists }
1625 	afpObjectNotFound = -5018; { Specified file or directory does not exist }
1626 	afpParmErr = -5019; { A specified parameter was out of allowable range }
1627 	afpRangeNotLocked = -5020; { Tried to unlock range that was not locked by user }
1628 	afpRangeOverlap = -5021; { Some or all of range already locked by same user }
1629 	afpSessClosed = -5022; { Session closed}
1630 	afpUserNotAuth = -5023; { No AFPLogin call has successfully been made for this session }
1631 	afpCallNotSupported = -5024; { Unsupported AFP call was made }
1632 	afpObjectTypeErr = -5025; { File/Directory specified where Directory/File expected }
1633 	afpTooManyFilesOpen = -5026; { Maximum open file count reached }
1634 	afpServerGoingDown = -5027; { Server is shutting down }
1635 	afpCantRename = -5028; { AFPRename cannot rename volume }
1636 	afpDirNotFound = -5029; { Unknown directory specified }
1637 	afpIconTypeError = -5030; { Icon size specified different from existing icon size }
1638 	afpVolLocked = -5031; { Volume is Read-Only }
1639 	afpObjectLocked = -5032; { Object is M/R/D/W inhibited}
1640 	afpContainsSharedErr = -5033; { the folder being shared contains a shared folder}
1641 	afpIDNotFound = -5034;
1642 	afpIDExists = -5035;
1643 	afpDiffVolErr = -5036;
1644 	afpCatalogChanged = -5037;
1645 	afpSameObjectErr = -5038;
1646 	afpBadIDErr = -5039;
1647 	afpPwdSameErr = -5040; { Someone tried to change their password to the same password on a mantadory password change }
1648 	afpPwdTooShortErr = -5041; { The password being set is too short: there is a minimum length that must be met or exceeded }
1649 	afpPwdExpiredErr = -5042; { The password being used is too old: this requires the user to change the password before log-in can continue }
1650 	afpInsideSharedErr = -5043; { The folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder }
1651                                         { OR the folder contains a shared folder and is being moved into the descendent of a shared folder.}
1652 	afpInsideTrashErr = -5044; { The folder being shared is inside the trash folder OR the shared folder is being moved into the trash folder }
1653                                         { OR the folder is being moved to the trash and it contains a shared folder }
1654 	afpPwdNeedsChangeErr = -5045; { The password needs to be changed}
1655 	afpPwdPolicyErr = -5046; { Password does not conform to servers password policy }
1656 	afpAlreadyLoggedInErr = -5047; { User has been authenticated but is already logged in from another machine (and that's not allowed on this server) }
1657 	afpCallNotAllowed = -5048; { The server knows what you wanted to do, but won't let you do it just now }
1658 
1659 const
1660 {  AppleShare Client Errors }
1661 	afpBadDirIDType = -5060;
1662 	afpCantMountMoreSrvre = -5061; { The Maximum number of server connections has been reached }
1663 	afpAlreadyMounted = -5062; { The volume is already mounted }
1664 	afpSameNodeErr = -5063; { An Attempt was made to connect to a file server running on the same machine }
1665 
1666 
1667 {Text Engines, TSystemTextEngines, HIEditText error coded}
1668 
1669 { NumberFormatting error codes}
1670 const
1671 	numberFormattingNotANumberErr = -5200;
1672 	numberFormattingOverflowInDestinationErr = -5201;
1673 	numberFormattingBadNumberFormattingObjectErr = -5202;
1674 	numberFormattingSpuriousCharErr = -5203;
1675 	numberFormattingLiteralMissingErr = -5204;
1676 	numberFormattingDelimiterMissingErr = -5205;
1677 	numberFormattingEmptyFormatErr = -5206;
1678 	numberFormattingBadFormatErr = -5207;
1679 	numberFormattingBadOptionsErr = -5208;
1680 	numberFormattingBadTokenErr = -5209;
1681 	numberFormattingUnOrderedCurrencyRangeErr = -5210;
1682 	numberFormattingBadCurrencyPositionErr = -5211;
1683 	numberFormattingNotADigitErr = -5212; { deprecated misspelled versions:}
1684 	numberFormattingUnOrdredCurrencyRangeErr = -5210;
1685 	numberFortmattingNotADigitErr = -5212;
1686 
1687 { TextParser error codes}
1688 const
1689 	textParserBadParamErr = -5220;
1690 	textParserObjectNotFoundErr = -5221;
1691 	textParserBadTokenValueErr = -5222;
1692 	textParserBadParserObjectErr = -5223;
1693 	textParserParamErr = -5224;
1694 	textParserNoMoreTextErr = -5225;
1695 	textParserBadTextLanguageErr = -5226;
1696 	textParserBadTextEncodingErr = -5227;
1697 	textParserNoSuchTokenFoundErr = -5228;
1698 	textParserNoMoreTokensErr = -5229;
1699 
1700 const
1701 	errUnknownAttributeTag = -5240;
1702 	errMarginWilllNotFit = -5241;
1703 	errNotInImagingMode = -5242;
1704 	errAlreadyInImagingMode = -5243;
1705 	errEngineNotFound = -5244;
1706 	errIteratorReachedEnd = -5245;
1707 	errInvalidRange = -5246;
1708 	errOffsetNotOnElementBounday = -5247;
1709 	errNoHiliteText = -5248;
1710 	errEmptyScrap = -5249;
1711 	errReadOnlyText = -5250;
1712 	errUnknownElement = -5251;
1713 	errNonContiuousAttribute = -5252;
1714 	errCannotUndo = -5253;
1715 
1716 
1717 { HTMLRendering OSStaus codes}
1718 const
1719 	hrHTMLRenderingLibNotInstalledErr = -5360;
1720 	hrMiscellaneousExceptionErr = -5361;
1721 	hrUnableToResizeHandleErr = -5362;
1722 	hrURLNotHandledErr = -5363;
1723 
1724 
1725 { IAExtractor result codes }
1726 const
1727 	errIANoErr = 0;
1728 	errIAUnknownErr = -5380;
1729 	errIAAllocationErr = -5381;
1730 	errIAParamErr = -5382;
1731 	errIANoMoreItems = -5383;
1732 	errIABufferTooSmall = -5384;
1733 	errIACanceled = -5385;
1734 	errIAInvalidDocument = -5386;
1735 	errIATextExtractionErr = -5387;
1736 	errIAEndOfTextRun = -5388;
1737 
1738 
1739 { QuickTime Streaming Errors }
1740 const
1741 	qtsBadSelectorErr = -5400;
1742 	qtsBadStateErr = -5401;
1743 	qtsBadDataErr = -5402; { something is wrong with the data }
1744 	qtsUnsupportedDataTypeErr = -5403;
1745 	qtsUnsupportedRateErr = -5404;
1746 	qtsUnsupportedFeatureErr = -5405;
1747 	qtsTooMuchDataErr = -5406;
1748 	qtsUnknownValueErr = -5407;
1749 	qtsTimeoutErr = -5408;
1750 	qtsConnectionFailedErr = -5420;
1751 	qtsAddressBusyErr = -5421;
1752 
1753 
1754 const
1755 {Gestalt error codes}
1756 	gestaltUnknownErr = -5550; {value returned if Gestalt doesn't know the answer}
1757 	gestaltUndefSelectorErr = -5551; {undefined selector was passed to Gestalt}
1758 	gestaltDupSelectorErr = -5552; {tried to add an entry that already existed}
1759 	gestaltLocationErr = -5553; {gestalt function ptr wasn't in sysheap}
1760 
1761 
1762 { Menu Manager error codes}
1763 const
1764 	menuPropertyInvalidErr = -5603; { invalid property creator }
1765 	menuPropertyInvalid = menuPropertyInvalidErr; { "menuPropertyInvalid" is deprecated }
1766 	menuPropertyNotFoundErr = -5604; { specified property wasn't found }
1767 	menuNotFoundErr = -5620; { specified menu or menu ID wasn't found }
1768 	menuUsesSystemDefErr = -5621; { GetMenuDefinition failed because the menu uses the system MDEF }
1769 	menuItemNotFoundErr = -5622; { specified menu item wasn't found}
1770 	menuInvalidErr = -5623; { menu is invalid}
1771 
1772 
1773 { Window Manager error codes}
1774 const
1775 	errInvalidWindowPtr = -5600; { tried to pass a bad WindowRef argument}
1776 	errInvalidWindowRef = -5600; { tried to pass a bad WindowRef argument}
1777 	errUnsupportedWindowAttributesForClass = -5601; { tried to create a window with WindowAttributes not supported by the WindowClass}
1778 	errWindowDoesNotHaveProxy = -5602; { tried to do something requiring a proxy to a window which doesn�t have a proxy}
1779 	errInvalidWindowProperty = -5603; { tried to access a property tag with private creator}
1780 	errWindowPropertyNotFound = -5604; { tried to get a nonexistent property}
1781 	errUnrecognizedWindowClass = -5605; { tried to create a window with a bad WindowClass}
1782 	errCorruptWindowDescription = -5606; { tried to load a corrupt window description (size or version fields incorrect)}
1783 	errUserWantsToDragWindow = -5607; { if returned from TrackWindowProxyDrag, you should call DragWindow on the window}
1784 	errWindowsAlreadyInitialized = -5608; { tried to call InitFloatingWindows twice, or called InitWindows and then floating windows}
1785 	errFloatingWindowsNotInitialized = -5609; { called HideFloatingWindows or ShowFloatingWindows without calling InitFloatingWindows}
1786 	errWindowNotFound = -5610; { returned from FindWindowOfClass}
1787 	errWindowDoesNotFitOnscreen = -5611; { ConstrainWindowToScreen could not make the window fit onscreen}
1788 	windowAttributeImmutableErr = -5612; { tried to change attributes which can't be changed}
1789 	windowAttributesConflictErr = -5613; { passed some attributes that are mutually exclusive}
1790 	windowManagerInternalErr = -5614; { something really weird happened inside the window manager}
1791 	windowWrongStateErr = -5615; { window is not in a state that is valid for the current action}
1792 	windowGroupInvalidErr = -5616; { WindowGroup is invalid}
1793 	windowAppModalStateAlreadyExistsErr = -5617; { we're already running this window modally}
1794 	windowNoAppModalStateErr = -5618; { there's no app modal state for the window}
1795 	errWindowDoesntSupportFocus = -30583;
1796 	errWindowRegionCodeInvalid = -30593;
1797 
1798 
1799 { Dialog Mgr error codes}
1800 const
1801 	dialogNoTimeoutErr = -5640;
1802 
1803 
1804 { NavigationLib error codes}
1805 const
1806 	kNavWrongDialogStateErr = -5694;
1807 	kNavWrongDialogClassErr = -5695;
1808 	kNavInvalidSystemConfigErr = -5696;
1809 	kNavCustomControlMessageFailedErr = -5697;
1810 	kNavInvalidCustomControlMessageErr = -5698;
1811 	kNavMissingKindStringErr = -5699;
1812 
1813 
1814 { Collection Manager errors }
1815 const
1816 	collectionItemLockedErr = -5750;
1817 	collectionItemNotFoundErr = -5751;
1818 	collectionIndexRangeErr = -5752;
1819 	collectionVersionErr = -5753;
1820 
1821 
1822 { QuickTime Streaming Server Errors }
1823 const
1824 	kQTSSUnknownErr = -6150;
1825 
1826 
1827 const
1828 { Display Manager error codes (-6220...-6269)}
1829 	kDMGenErr = -6220; {Unexpected Error}
1830                                         { Mirroring-Specific Errors }
1831 	kDMMirroringOnAlready = -6221; {Returned by all calls that need mirroring to be off to do their thing.}
1832 	kDMWrongNumberOfDisplays = -6222; {Can only handle 2 displays for now.}
1833 	kDMMirroringBlocked = -6223; {DMBlockMirroring() has been called.}
1834 	kDMCantBlock = -6224; {Mirroring is already on, can�t Block now (call DMUnMirror() first).}
1835 	kDMMirroringNotOn = -6225; {Returned by all calls that need mirroring to be on to do their thing.}
1836                                         { Other Display Manager Errors }
1837 	kSysSWTooOld = -6226; {Missing critical pieces of System Software.}
1838 	kDMSWNotInitializedErr = -6227; {Required software not initialized (eg windowmanager or display mgr).}
1839 	kDMDriverNotDisplayMgrAwareErr = -6228; {Video Driver does not support display manager.}
1840 	kDMDisplayNotFoundErr = -6229; {Could not find item (will someday remove).}
1841 	kDMNotFoundErr = -6229; {Could not find item.}
1842 	kDMDisplayAlreadyInstalledErr = -6230; {Attempt to add an already installed display.}
1843 	kDMMainDisplayCannotMoveErr = -6231; {Trying to move main display (or a display mirrored to it) }
1844 	kDMNoDeviceTableclothErr = -6231; {obsolete}
1845 	kDMFoundErr = -6232; {Did not proceed because we found an item}
1846 
1847 
1848 {
1849     Language Analysis error codes
1850 }
1851 const
1852 	laTooSmallBufferErr = -6984; { output buffer is too small to store any result }
1853 	laEnvironmentBusyErr = -6985; { specified environment is used }
1854 	laEnvironmentNotFoundErr = -6986; { can't fint the specified environment }
1855 	laEnvironmentExistErr = -6987; { same name environment is already exists }
1856 	laInvalidPathErr = -6988; { path is not correct }
1857 	laNoMoreMorphemeErr = -6989; { nothing to read}
1858 	laFailAnalysisErr = -6990; { analysis failed}
1859 	laTextOverFlowErr = -6991; { text is too long}
1860 	laDictionaryNotOpenedErr = -6992; { the dictionary is not opened}
1861 	laDictionaryUnknownErr = -6993; { can't use this dictionary with this environment}
1862 	laDictionaryTooManyErr = -6994; { too many dictionaries}
1863 	laPropertyValueErr = -6995; { Invalid property value}
1864 	laPropertyUnknownErr = -6996; { the property is unknown to this environment}
1865 	laPropertyIsReadOnlyErr = -6997; { the property is read only}
1866 	laPropertyNotFoundErr = -6998; { can't find the property}
1867 	laPropertyErr = -6999; { Error in properties}
1868 	laEngineNotFoundErr = -7000; { can't find the engine}
1869 
1870 
1871 const
1872 	kUSBNoErr = 0;
1873 	kUSBNoTran = 0;
1874 	kUSBNoDelay = 0;
1875 	kUSBPending = 1;
1876 
1877 {
1878 
1879    USB Hardware Errors
1880    Note pipe stalls are communication
1881    errors. The affected pipe can not
1882    be used until USBClearPipeStallByReference
1883    is used.
1884    kUSBEndpointStallErr is returned in
1885    response to a stall handshake
1886    from a device. The device has to be
1887    cleared before a USBClearPipeStallByReference
1888    can be used.
1889 }
1890 const
1891 	kUSBNotSent2Err = -6901; {  Transaction not sent }
1892 	kUSBNotSent1Err = -6902; {  Transaction not sent }
1893 	kUSBBufUnderRunErr = -6903; {  Host hardware failure on data out, PCI busy? }
1894 	kUSBBufOvrRunErr = -6904; {  Host hardware failure on data in, PCI busy? }
1895 	kUSBRes2Err = -6905;
1896 	kUSBRes1Err = -6906;
1897 	kUSBUnderRunErr = -6907; {  Less data than buffer }
1898 	kUSBOverRunErr = -6908; {  Packet too large or more data than buffer }
1899 	kUSBWrongPIDErr = -6909; {  Pipe stall, Bad or wrong PID }
1900 	kUSBPIDCheckErr = -6910; {  Pipe stall, PID CRC error }
1901 	kUSBNotRespondingErr = -6911; {  Pipe stall, No device, device hung }
1902 	kUSBEndpointStallErr = -6912; {  Device didn't understand }
1903 	kUSBDataToggleErr = -6913; {  Pipe stall, Bad data toggle }
1904 	kUSBBitstufErr = -6914; {  Pipe stall, bitstuffing }
1905 	kUSBCRCErr = -6915; {  Pipe stall, bad CRC }
1906 	kUSBLinkErr = -6916;
1907 
1908 
1909 {
1910 
1911    USB Manager Errors
1912 }
1913 const
1914 	kUSBQueueFull = -6948; { Internal queue maxxed  }
1915 	kUSBNotHandled = -6987; { Notification was not handled   (same as NotFound)}
1916 	kUSBUnknownNotification = -6949; { Notification type not defined  }
1917 	kUSBBadDispatchTable = -6950; { Improper driver dispatch table     }
1918 
1919 
1920 {
1921    USB internal errors are in range -6960 to -6951
1922    please do not use this range
1923 
1924 }
1925 const
1926 	kUSBInternalReserved10 = -6951;
1927 	kUSBInternalReserved9 = -6952;
1928 	kUSBInternalReserved8 = -6953;
1929 	kUSBInternalReserved7 = -6954;
1930 	kUSBInternalReserved6 = -6955;
1931 	kUSBInternalReserved5 = -6956;
1932 	kUSBInternalReserved4 = -6957;
1933 	kUSBInternalReserved3 = -6958;
1934 	kUSBInternalReserved2 = -6959;
1935 	kUSBInternalReserved1 = -6960; { reserved}
1936 
1937 { USB Services Errors }
1938 const
1939 	kUSBPortDisabled = -6969; { The port you are attached to is disabled, use USBDeviceReset.}
1940 	kUSBQueueAborted = -6970; { Pipe zero stall cleared.}
1941 	kUSBTimedOut = -6971; { Transaction timed out. }
1942 	kUSBDeviceDisconnected = -6972; { Disconnected during suspend or reset }
1943 	kUSBDeviceNotSuspended = -6973; { device is not suspended for resume }
1944 	kUSBDeviceSuspended = -6974; { Device is suspended }
1945 	kUSBInvalidBuffer = -6975; { bad buffer, usually nil }
1946 	kUSBDevicePowerProblem = -6976; {  Device has a power problem }
1947 	kUSBDeviceBusy = -6977; {  Device is already being configured }
1948 	kUSBUnknownInterfaceErr = -6978; {  Interface ref not recognised }
1949 	kUSBPipeStalledError = -6979; {  Pipe has stalled, error needs to be cleared }
1950 	kUSBPipeIdleError = -6980; {  Pipe is Idle, it will not accept transactions }
1951 	kUSBNoBandwidthError = -6981; {  Not enough bandwidth available }
1952 	kUSBAbortedError = -6982; {  Pipe aborted }
1953 	kUSBFlagsError = -6983; {  Unused flags not zeroed }
1954 	kUSBCompletionError = -6984; {  no completion routine specified }
1955 	kUSBPBLengthError = -6985; {  pbLength too small }
1956 	kUSBPBVersionError = -6986; {  Wrong pbVersion }
1957 	kUSBNotFound = -6987; {  Not found }
1958 	kUSBOutOfMemoryErr = -6988; {  Out of memory }
1959 	kUSBDeviceErr = -6989; {  Device error }
1960 	kUSBNoDeviceErr = -6990; {  No device}
1961 	kUSBAlreadyOpenErr = -6991; {  Already open }
1962 	kUSBTooManyTransactionsErr = -6992; {  Too many transactions }
1963 	kUSBUnknownRequestErr = -6993; {  Unknown request }
1964 	kUSBRqErr = -6994; {  Request error }
1965 	kUSBIncorrectTypeErr = -6995; {  Incorrect type }
1966 	kUSBTooManyPipesErr = -6996; {  Too many pipes }
1967 	kUSBUnknownPipeErr = -6997; {  Pipe ref not recognised }
1968 	kUSBUnknownDeviceErr = -6998; {  device ref not recognised }
1969 	kUSBInternalErr = -6999; { Internal error }
1970 
1971 
1972 {
1973     DictionaryMgr error codes
1974 }
1975 const
1976 	dcmParamErr = -7100; { bad parameter}
1977 	dcmNotDictionaryErr = -7101; { not dictionary}
1978 	dcmBadDictionaryErr = -7102; { invalid dictionary}
1979 	dcmPermissionErr = -7103; { invalid permission}
1980 	dcmDictionaryNotOpenErr = -7104; { dictionary not opened}
1981 	dcmDictionaryBusyErr = -7105; { dictionary is busy}
1982 	dcmBlockFullErr = -7107; { dictionary block full}
1983 	dcmNoRecordErr = -7108; { no such record}
1984 	dcmDupRecordErr = -7109; { same record already exist}
1985 	dcmNecessaryFieldErr = -7110; { lack required/identify field}
1986 	dcmBadFieldInfoErr = -7111; { incomplete information}
1987 	dcmBadFieldTypeErr = -7112; { no such field type supported}
1988 	dcmNoFieldErr = -7113; { no such field exist}
1989 	dcmBadKeyErr = -7115; { bad key information}
1990 	dcmTooManyKeyErr = -7116; { too many key field}
1991 	dcmBadDataSizeErr = -7117; { too big data size}
1992 	dcmBadFindMethodErr = -7118; { no such find method supported}
1993 	dcmBadPropertyErr = -7119; { no such property exist}
1994 	dcmProtectedErr = -7121; { need keyword to use dictionary}
1995 	dcmNoAccessMethodErr = -7122; { no such AccessMethod}
1996 	dcmBadFeatureErr = -7124; { invalid AccessMethod feature}
1997 	dcmIterationCompleteErr = -7126; { no more item in iterator}
1998 	dcmBufferOverflowErr = -7127; { data is larger than buffer size}
1999 
2000 
2001 { Apple Remote Access error codes}
2002 const
2003 	kRAInvalidParameter = -7100;
2004 	kRAInvalidPort = -7101;
2005 	kRAStartupFailed = -7102;
2006 	kRAPortSetupFailed = -7103;
2007 	kRAOutOfMemory = -7104;
2008 	kRANotSupported = -7105;
2009 	kRAMissingResources = -7106;
2010 	kRAIncompatiblePrefs = -7107;
2011 	kRANotConnected = -7108;
2012 	kRAConnectionCanceled = -7109;
2013 	kRAUnknownUser = -7110;
2014 	kRAInvalidPassword = -7111;
2015 	kRAInternalError = -7112;
2016 	kRAInstallationDamaged = -7113;
2017 	kRAPortBusy = -7114;
2018 	kRAUnknownPortState = -7115;
2019 	kRAInvalidPortState = -7116;
2020 	kRAInvalidSerialProtocol = -7117;
2021 	kRAUserLoginDisabled = -7118;
2022 	kRAUserPwdChangeRequired = -7119;
2023 	kRAUserPwdEntryRequired = -7120;
2024 	kRAUserInteractionRequired = -7121;
2025 	kRAInitOpenTransportFailed = -7122;
2026 	kRARemoteAccessNotReady = -7123;
2027 	kRATCPIPInactive = -7124; { TCP/IP inactive, cannot be loaded}
2028 	kRATCPIPNotConfigured = -7125; { TCP/IP not configured, could be loaded}
2029 	kRANotPrimaryInterface = -7126; { when IPCP is not primary TCP/IP intf.}
2030 	kRAConfigurationDBInitErr = -7127;
2031 	kRAPPPProtocolRejected = -7128;
2032 	kRAPPPAuthenticationFailed = -7129;
2033 	kRAPPPNegotiationFailed = -7130;
2034 	kRAPPPUserDisconnected = -7131;
2035 	kRAPPPPeerDisconnected = -7132;
2036 	kRAPeerNotResponding = -7133;
2037 	kRAATalkInactive = -7134;
2038 	kRAExtAuthenticationFailed = -7135;
2039 	kRANCPRejectedbyPeer = -7136;
2040 	kRADuplicateIPAddr = -7137;
2041 	kRACallBackFailed = -7138;
2042 	kRANotEnabled = -7139;
2043 
2044 
2045 { ATSUI Error Codes - Range 1 of 2}
2046 
2047 
2048 const
2049 	kATSUInvalidTextLayoutErr = -8790; {    An attempt was made to use a ATSUTextLayout }
2050                                         {    which hadn't been initialized or is otherwise }
2051                                         {    in an invalid state. }
2052 	kATSUInvalidStyleErr = -8791; {    An attempt was made to use a ATSUStyle which  }
2053                                         {    hadn't been properly allocated or is otherwise  }
2054                                         {    in an invalid state.  }
2055 	kATSUInvalidTextRangeErr = -8792; {    An attempt was made to extract information   }
2056                                         {    from or perform an operation on a ATSUTextLayout }
2057                                         {    for a range of text not covered by the ATSUTextLayout.  }
2058 	kATSUFontsMatched = -8793; {    This is not an error code but is returned by    }
2059                                         {    ATSUMatchFontsToText() when changes need to    }
2060                                         {    be made to the fonts associated with the text.  }
2061 	kATSUFontsNotMatched = -8794; {    This value is returned by ATSUMatchFontsToText()    }
2062                                         {    when the text contains Unicode characters which    }
2063                                         {    cannot be represented by any installed font.  }
2064 	kATSUNoCorrespondingFontErr = -8795; {    This value is retrned by font ID conversion }
2065                                         {    routines ATSUFONDtoFontID() and ATSUFontIDtoFOND() }
2066                                         {    to indicate that the input font ID is valid but }
2067                                         {    there is no conversion possible.  For example, }
2068                                         {    data-fork fonts can only be used with ATSUI not }
2069                                         {    the FontManager, and so converting an ATSUIFontID }
2070                                         {    for such a font will fail.   }
2071 	kATSUInvalidFontErr = -8796; {    Used when an attempt was made to use an invalid font ID.}
2072 	kATSUInvalidAttributeValueErr = -8797; {    Used when an attempt was made to use an attribute with }
2073                                         {    a bad or undefined value.  }
2074 	kATSUInvalidAttributeSizeErr = -8798; {    Used when an attempt was made to use an attribute with a }
2075                                         {    bad size.  }
2076 	kATSUInvalidAttributeTagErr = -8799; {    Used when an attempt was made to use a tag value that}
2077                                         {    was not appropriate for the function call it was used.  }
2078 	kATSUInvalidCacheErr = -8800; {    Used when an attempt was made to read in style data }
2079                                         {    from an invalid cache.  Either the format of the }
2080                                         {    cached data doesn't match that used by Apple Type }
2081                                         {    Services for Unicode� Imaging, or the cached data }
2082                                         {    is corrupt.  }
2083 	kATSUNotSetErr = -8801; {    Used when the client attempts to retrieve an attribute, }
2084                                         {    font feature, or font variation from a style when it }
2085                                         {    hadn't been set.  In such a case, the default value will}
2086                                         {    be returned for the attribute's value.}
2087 	kATSUNoStyleRunsAssignedErr = -8802; {    Used when an attempt was made to measure, highlight or draw}
2088                                         {    a ATSUTextLayout object that has no styleRuns associated with it.}
2089 	kATSUQuickDrawTextErr = -8803; {    Used when QuickDraw Text encounters an error rendering or measuring}
2090                                         {    a line of ATSUI text.}
2091 	kATSULowLevelErr = -8804; {    Used when an error was encountered within the low level ATS }
2092                                         {    mechanism performing an operation requested by ATSUI.}
2093 	kATSUNoFontCmapAvailableErr = -8805; {    Used when no CMAP table can be accessed or synthesized for the }
2094                                         {    font passed into a SetAttributes Font call.}
2095 	kATSUNoFontScalerAvailableErr = -8806; {    Used when no font scaler is available for the font passed}
2096                                         {    into a SetAttributes Font call.}
2097 	kATSUCoordinateOverflowErr = -8807; {    Used to indicate the coordinates provided to an ATSUI routine caused}
2098                                         {    a coordinate overflow (i.e. > 32K).}
2099 	kATSULineBreakInWord = -8808; {    This is not an error code but is returned by ATSUBreakLine to }
2100                                         {    indicate that the returned offset is within a word since there was}
2101                                         {    only less than one word that could fit the requested width.}
2102 	kATSUBusyObjectErr = -8809; {    An ATSUI object is being used by another thread }
2103 
2104 {
2105    kATSUInvalidFontFallbacksErr, which had formerly occupied -8810 has been relocated to error code -8900. See
2106    below in this range for additional error codes.
2107 }
2108 
2109 
2110 { Error & status codes for general text and text encoding conversion}
2111 
2112 const
2113 { general text errors}
2114 	kTextUnsupportedEncodingErr = -8738; { specified encoding not supported for this operation}
2115 	kTextMalformedInputErr = -8739; { in DBCS, for example, high byte followed by invalid low byte}
2116 	kTextUndefinedElementErr = -8740; { text conversion errors}
2117 	kTECMissingTableErr = -8745;
2118 	kTECTableChecksumErr = -8746;
2119 	kTECTableFormatErr = -8747;
2120 	kTECCorruptConverterErr = -8748; { invalid converter object reference}
2121 	kTECNoConversionPathErr = -8749;
2122 	kTECBufferBelowMinimumSizeErr = -8750; { output buffer too small to allow processing of first input text element}
2123 	kTECArrayFullErr = -8751; { supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small}
2124 	kTECBadTextRunErr = -8752;
2125 	kTECPartialCharErr = -8753; { input buffer ends in the middle of a multibyte character, conversion stopped}
2126 	kTECUnmappableElementErr = -8754;
2127 	kTECIncompleteElementErr = -8755; { text element may be incomplete or is too long for internal buffers}
2128 	kTECDirectionErr = -8756; { direction stack overflow, etc.}
2129 	kTECGlobalsUnavailableErr = -8770; { globals have already been deallocated (premature TERM)}
2130 	kTECItemUnavailableErr = -8771; { item (e.g. name) not available for specified region (& encoding if relevant)}
2131                                         { text conversion status codes}
2132 	kTECUsedFallbacksStatus = -8783;
2133 	kTECNeedFlushStatus = -8784;
2134 	kTECOutputBufferFullStatus = -8785; { output buffer has no room for conversion of next input text element (partial conversion)}
2135                                         { deprecated error & status codes for low-level converter}
2136 	unicodeChecksumErr = -8769;
2137 	unicodeNoTableErr = -8768;
2138 	unicodeVariantErr = -8767;
2139 	unicodeFallbacksErr = -8766;
2140 	unicodePartConvertErr = -8765;
2141 	unicodeBufErr = -8764;
2142 	unicodeCharErr = -8763;
2143 	unicodeElementErr = -8762;
2144 	unicodeNotFoundErr = -8761;
2145 	unicodeTableFormatErr = -8760;
2146 	unicodeDirectionErr = -8759;
2147 	unicodeContextualErr = -8758;
2148 	unicodeTextEncodingDataErr = -8757;
2149 
2150 
2151 { UTCUtils Status Codes }
2152 const
2153 	kUTCUnderflowErr = -8850;
2154 	kUTCOverflowErr = -8851;
2155 	kIllegalClockValueErr = -8852;
2156 
2157 
2158 { ATSUI Error Codes - Range 2 of 2}
2159 
2160 
2161 const
2162 	kATSUInvalidFontFallbacksErr = -8900; {    An attempt was made to use a ATSUFontFallbacks which hadn't }
2163                                         {    been initialized or is otherwise in an invalid state. }
2164 	kATSUUnsupportedStreamFormatErr = -8901; {    An attempt was made to use a ATSUFlattenedDataStreamFormat}
2165                                         {    which is invalid is not compatible with this version of ATSUI.}
2166 	kATSUBadStreamErr = -8902; {    An attempt was made to use a stream which is incorrectly}
2167                                         {    structured, contains bad or out of range values or is}
2168                                         {    missing required information.}
2169 	kATSUOutputBufferTooSmallErr = -8903; {    An attempt was made to use an output buffer which was too small}
2170                                         {    for the requested operation.}
2171 	kATSUInvalidCallInsideCallbackErr = -8904; {    A call was made within the context of a callback that could}
2172                                         {    potetially cause an infinite recursion}
2173 	kATSUNoFontNameErr = -8905; {    This error is returned when either ATSUFindFontName() or ATSUGetIndFontName() }
2174                                         {    function cannot find a corresponding font name given the input parameters}
2175 	kATSULastErr = -8959; {    The last ATSUI error code.}
2176 
2177 
2178 { QuickTime errors (Image Compression Manager) }
2179 const
2180 	codecErr = -8960;
2181 	noCodecErr = -8961;
2182 	codecUnimpErr = -8962;
2183 	codecSizeErr = -8963;
2184 	codecScreenBufErr = -8964;
2185 	codecImageBufErr = -8965;
2186 	codecSpoolErr = -8966;
2187 	codecAbortErr = -8967;
2188 	codecWouldOffscreenErr = -8968;
2189 	codecBadDataErr = -8969;
2190 	codecDataVersErr = -8970;
2191 	codecExtensionNotFoundErr = -8971;
2192 	scTypeNotFoundErr = codecExtensionNotFoundErr;
2193 	codecConditionErr = -8972;
2194 	codecOpenErr = -8973;
2195 	codecCantWhenErr = -8974;
2196 	codecCantQueueErr = -8975;
2197 	codecNothingToBlitErr = -8976;
2198 	codecNoMemoryPleaseWaitErr = -8977;
2199 	codecDisabledErr = -8978; { codec disabled itself -- pass codecFlagReenable to reset}
2200 	codecNeedToFlushChainErr = -8979;
2201 	lockPortBitsBadSurfaceErr = -8980;
2202 	lockPortBitsWindowMovedErr = -8981;
2203 	lockPortBitsWindowResizedErr = -8982;
2204 	lockPortBitsWindowClippedErr = -8983;
2205 	lockPortBitsBadPortErr = -8984;
2206 	lockPortBitsSurfaceLostErr = -8985;
2207 	codecParameterDialogConfirm = -8986;
2208 	codecNeedAccessKeyErr = -8987; { codec needs password in order to decompress}
2209 	codecOffscreenFailedErr = -8988;
2210 	codecDroppedFrameErr = -8989; { returned from ImageCodecDrawBand }
2211 	directXObjectAlreadyExists = -8990;
2212 	lockPortBitsWrongGDeviceErr = -8991;
2213 	codecOffscreenFailedPleaseRetryErr = -8992;
2214 	badCodecCharacterizationErr = -8993;
2215 	noThumbnailFoundErr = -8994;
2216 
2217 
2218 { PCCard error codes }
2219 const
2220 	kBadAdapterErr = -9050; { invalid adapter number}
2221 	kBadAttributeErr = -9051; { specified attributes field value is invalid}
2222 	kBadBaseErr = -9052; { specified base system memory address is invalid}
2223 	kBadEDCErr = -9053; { specified EDC generator specified is invalid}
2224 	kBadIRQErr = -9054; { specified IRQ level is invalid}
2225 	kBadOffsetErr = -9055; { specified PC card memory array offset is invalid}
2226 	kBadPageErr = -9056; { specified page is invalid}
2227 	kBadSizeErr = -9057; { specified size is invalid}
2228 	kBadSocketErr = -9058; { specified logical or physical socket number is invalid}
2229 	kBadTypeErr = -9059; { specified window or interface type is invalid}
2230 	kBadVccErr = -9060; { specified Vcc power level index is invalid}
2231 	kBadVppErr = -9061; { specified Vpp1 or Vpp2 power level index is invalid}
2232 	kBadWindowErr = -9062; { specified window is invalid}
2233 	kBadArgLengthErr = -9063; { ArgLength argument is invalid}
2234 	kBadArgsErr = -9064; { values in argument packet are invalid}
2235 	kBadHandleErr = -9065; { clientHandle is invalid}
2236 	kBadCISErr = -9066; { CIS on card is invalid}
2237 	kBadSpeedErr = -9067; { specified speed is unavailable}
2238 	kReadFailureErr = -9068; { unable to complete read request}
2239 	kWriteFailureErr = -9069; { unable to complete write request}
2240 	kGeneralFailureErr = -9070; { an undefined error has occurred}
2241 	kNoCardErr = -9071; { no PC card in the socket}
2242 	kUnsupportedFunctionErr = -9072; { function is not supported by this implementation}
2243 	kUnsupportedModeErr = -9073; { mode is not supported}
2244 	kBusyErr = -9074; { unable to process request at this time - try later}
2245 	kWriteProtectedErr = -9075; { media is write-protected}
2246 	kConfigurationLockedErr = -9076; { a configuration has already been locked}
2247 	kInUseErr = -9077; { requested resource is being used by a client}
2248 	kNoMoreItemsErr = -9078; { there are no more of the requested item}
2249 	kOutOfResourceErr = -9079; { Card Services has exhausted the resource}
2250 	kNoCardSevicesSocketsErr = -9080;
2251 	kInvalidRegEntryErr = -9081;
2252 	kBadLinkErr = -9082;
2253 	kBadDeviceErr = -9083;
2254 	k16BitCardErr = -9084;
2255 	kCardBusCardErr = -9085;
2256 	kPassCallToChainErr = -9086;
2257 	kCantConfigureCardErr = -9087;
2258 	kPostCardEventErr = -9088; { _PCCSLPostCardEvent failed and dropped an event }
2259 	kInvalidDeviceNumber = -9089;
2260 	kUnsupportedVsErr = -9090; { Unsupported Voltage Sense }
2261 	kInvalidCSClientErr = -9091; { Card Services ClientID is not registered }
2262 	kBadTupleDataErr = -9092; { Data in tuple is invalid }
2263 	kBadCustomIFIDErr = -9093; { Custom interface ID is invalid }
2264 	kNoIOWindowRequestedErr = -9094; { Request I/O window before calling configuration }
2265 	kNoMoreTimerClientsErr = -9095; { All timer callbacks are in use }
2266 	kNoMoreInterruptSlotsErr = -9096; { All internal Interrupt slots are in use }
2267 	kNoClientTableErr = -9097; { The client table has not be initialized yet }
2268 	kUnsupportedCardErr = -9098; { Card not supported by generic enabler}
2269 	kNoCardEnablersFoundErr = -9099; { No Enablers were found}
2270 	kNoEnablerForCardErr = -9100; { No Enablers were found that can support the card}
2271 	kNoCompatibleNameErr = -9101; { There is no compatible driver name for this device}
2272 	kClientRequestDenied = -9102; { CS Clients should return this code inorder to }
2273                                         {   deny a request-type CS Event                }
2274 	kNotReadyErr = -9103; { PC Card failed to go ready }
2275 	kTooManyIOWindowsErr = -9104; { device requested more than one I/O window }
2276 	kAlreadySavedStateErr = -9105; { The state has been saved on previous call }
2277 	kAttemptDupCardEntryErr = -9106; { The Enabler was asked to create a duplicate card entry }
2278 	kCardPowerOffErr = -9107; { Power to the card has been turned off }
2279 	kNotZVCapableErr = -9108; { This socket does not support Zoomed Video }
2280 	kNoCardBusCISErr = -9109; { No valid CIS exists for this CardBus card }
2281 
2282 
2283 const
2284 	noDeviceForChannel = -9400;
2285 	grabTimeComplete = -9401;
2286 	cantDoThatInCurrentMode = -9402;
2287 	notEnoughMemoryToGrab = -9403;
2288 	notEnoughDiskSpaceToGrab = -9404;
2289 	couldntGetRequiredComponent = -9405;
2290 	badSGChannel = -9406;
2291 	seqGrabInfoNotAvailable = -9407;
2292 	deviceCantMeetRequest = -9408;
2293 	badControllerHeight = -9994;
2294 	editingNotAllowed = -9995;
2295 	controllerBoundsNotExact = -9996;
2296 	cannotSetWidthOfAttachedController = -9997;
2297 	controllerHasFixedHeight = -9998;
2298 	cannotMoveAttachedController = -9999;
2299 
2300 { AERegistry Errors }
2301 const
2302 	errAEBadKeyForm = -10002;
2303 	errAECantHandleClass = -10010;
2304 	errAECantSupplyType = -10009;
2305 	errAECantUndo = -10015;
2306 	errAEEventFailed = -10000;
2307 	errAEIndexTooLarge = -10007;
2308 	errAEInTransaction = -10011;
2309 	errAELocalOnly = -10016;
2310 	errAENoSuchTransaction = -10012;
2311 	errAENotAnElement = -10008;
2312 	errAENotASingleObject = -10014;
2313 	errAENotModifiable = -10003;
2314 	errAENoUserSelection = -10013;
2315 	errAEPrivilegeError = -10004;
2316 	errAEReadDenied = -10005;
2317 	errAETypeError = -10001;
2318 	errAEWriteDenied = -10006;
2319 	errAENotAnEnumMember = -10023; { enumerated value in SetData is not allowed for this property }
2320 	errAECantPutThatThere = -10024; { in make new, duplicate, etc. class can't be an element of container }
2321 	errAEPropertiesClash = -10025; { illegal combination of properties settings for Set Data, make new, or duplicate }
2322 
2323 { TELErr }
2324 const
2325 	telGenericError = -1;
2326 	telNoErr = 0;
2327 	telNoTools = 8;    { no telephone tools found in extension folder }
2328 	telBadTermErr = -10001; { invalid TELHandle or handle not found}
2329 	telBadDNErr = -10002; { TELDNHandle not found or invalid }
2330 	telBadCAErr = -10003; { TELCAHandle not found or invalid }
2331 	telBadHandErr = -10004; { bad handle specified }
2332 	telBadProcErr = -10005; { bad msgProc specified }
2333 	telCAUnavail = -10006; { a CA is not available }
2334 	telNoMemErr = -10007; { no memory to allocate handle }
2335 	telNoOpenErr = -10008; { unable to open terminal }
2336 	telBadHTypeErr = -10010; { bad hook type specified }
2337 	telHTypeNotSupp = -10011; { hook type not supported by this tool }
2338 	telBadLevelErr = -10012; { bad volume level setting }
2339 	telBadVTypeErr = -10013; { bad volume type error }
2340 	telVTypeNotSupp = -10014; { volume type not supported by this tool}
2341 	telBadAPattErr = -10015; { bad alerting pattern specified }
2342 	telAPattNotSupp = -10016; { alerting pattern not supported by tool}
2343 	telBadIndex = -10017; { bad index specified }
2344 	telIndexNotSupp = -10018; { index not supported by this tool }
2345 	telBadStateErr = -10019; { bad device state specified }
2346 	telStateNotSupp = -10020; { device state not supported by tool }
2347 	telBadIntExt = -10021; { bad internal external error }
2348 	telIntExtNotSupp = -10022; { internal external type not supported by this tool }
2349 	telBadDNDType = -10023; { bad DND type specified }
2350 	telDNDTypeNotSupp = -10024; { DND type is not supported by this tool }
2351 	telFeatNotSub = -10030; { feature not subscribed }
2352 	telFeatNotAvail = -10031; { feature subscribed but not available }
2353 	telFeatActive = -10032; { feature already active }
2354 	telFeatNotSupp = -10033; { feature program call not supported by this tool }
2355 	telConfLimitErr = -10040; { limit specified is too high for this configuration }
2356 	telConfNoLimit = -10041; { no limit was specified but required}
2357 	telConfErr = -10042; { conference was not prepared }
2358 	telConfRej = -10043; { conference request was rejected }
2359 	telTransferErr = -10044; { transfer not prepared }
2360 	telTransferRej = -10045; { transfer request rejected }
2361 	telCBErr = -10046; { call back feature not set previously }
2362 	telConfLimitExceeded = -10047; { attempt to exceed switch conference limits }
2363 	telBadDNType = -10050; { DN type invalid }
2364 	telBadPageID = -10051; { bad page ID specified}
2365 	telBadIntercomID = -10052; { bad intercom ID specified }
2366 	telBadFeatureID = -10053; { bad feature ID specified }
2367 	telBadFwdType = -10054; { bad fwdType specified }
2368 	telBadPickupGroupID = -10055; { bad pickup group ID specified }
2369 	telBadParkID = -10056; { bad park id specified }
2370 	telBadSelect = -10057; { unable to select or deselect DN }
2371 	telBadBearerType = -10058; { bad bearerType specified }
2372 	telBadRate = -10059; { bad rate specified }
2373 	telDNTypeNotSupp = -10060; { DN type not supported by tool }
2374 	telFwdTypeNotSupp = -10061; { forward type not supported by tool }
2375 	telBadDisplayMode = -10062; { bad display mode specified }
2376 	telDisplayModeNotSupp = -10063; { display mode not supported by tool }
2377 	telNoCallbackRef = -10064; { no call back reference was specified, but is required }
2378 	telAlreadyOpen = -10070; { terminal already open }
2379 	telStillNeeded = -10071; { terminal driver still needed by someone else }
2380 	telTermNotOpen = -10072; { terminal not opened via TELOpenTerm }
2381 	telCANotAcceptable = -10080; { CA not "acceptable" }
2382 	telCANotRejectable = -10081; { CA not "rejectable" }
2383 	telCANotDeflectable = -10082; { CA not "deflectable" }
2384 	telPBErr = -10090; { parameter block error, bad format }
2385 	telBadFunction = -10091; { bad msgCode specified }
2386                                         {    telNoTools        = -10101,        unable to find any telephone tools }
2387 	telNoSuchTool = -10102; { unable to find tool with name specified }
2388 	telUnknownErr = -10103; { unable to set config }
2389 	telNoCommFolder = -10106; { Communications/Extensions � not found }
2390 	telInitFailed = -10107; { initialization failed }
2391 	telBadCodeResource = -10108; { code resource not found }
2392 	telDeviceNotFound = -10109; { device not found }
2393 	telBadProcID = -10110; { invalid procID }
2394 	telValidateFailed = -10111; { telValidate failed }
2395 	telAutoAnsNotOn = -10112; { autoAnswer in not turned on }
2396 	telDetAlreadyOn = -10113; { detection is already turned on }
2397 	telBadSWErr = -10114; { Software not installed properly }
2398 	telBadSampleRate = -10115; { incompatible sample rate }
2399 	telNotEnoughdspBW = -10116; { not enough real-time for allocation }
2400 
2401 const
2402 	errTaskNotFound = -10780; { no task with that task id exists }
2403 
2404 
2405 { Video driver Errorrs -10930 to -10959 }
2406 { Defined in video.h. }
2407 
2408 const
2409 {Power Manager Errors}
2410 	pmBusyErr = -13000; {Power Mgr never ready to start handshake}
2411 	pmReplyTOErr = -13001; {Timed out waiting for reply}
2412 	pmSendStartErr = -13002; {during send, pmgr did not start hs}
2413 	pmSendEndErr = -13003; {during send, pmgr did not finish hs}
2414 	pmRecvStartErr = -13004; {during receive, pmgr did not start hs}
2415 	pmRecvEndErr = -13005; {during receive, pmgr did not finish hs configured for this connection}
2416 
2417 {Power Manager 2.0 Errors}
2418 const
2419 	kPowerHandlerExistsForDeviceErr = -13006;
2420 	kPowerHandlerNotFoundForDeviceErr = -13007;
2421 	kPowerHandlerNotFoundForProcErr = -13008;
2422 	kPowerMgtMessageNotHandled = -13009;
2423 	kPowerMgtRequestDenied = -13010;
2424 	kCantReportProcessorTemperatureErr = -13013;
2425 	kProcessorTempRoutineRequiresMPLib2 = -13014;
2426 	kNoSuchPowerSource = -13020;
2427 	kBridgeSoftwareRunningCantSleep = -13038;
2428 
2429 
2430 { Debugging library errors }
2431 const
2432 	debuggingExecutionContextErr = -13880; { routine cannot be called at this time }
2433 	debuggingDuplicateSignatureErr = -13881; { componentSignature already registered }
2434 	debuggingDuplicateOptionErr = -13882; { optionSelectorNum already registered }
2435 	debuggingInvalidSignatureErr = -13883; { componentSignature not registered }
2436 	debuggingInvalidOptionErr = -13884; { optionSelectorNum is not registered }
2437 	debuggingInvalidNameErr = -13885; { componentName or optionName is invalid (NULL) }
2438 	debuggingNoCallbackErr = -13886; { debugging component has no callback }
2439 	debuggingNoMatchErr = -13887; { debugging component or option not found at this index }
2440 
2441 
2442 { HID device driver error codes }
2443 const
2444 	kHIDVersionIncompatibleErr = -13909;
2445 	kHIDDeviceNotReady = -13910; { The device is still initializing, try again later}
2446 
2447 
2448 { HID error codes }
2449 const
2450 	kHIDSuccess = 0;
2451 	kHIDInvalidRangePageErr = -13923;
2452 	kHIDReportIDZeroErr = -13924;
2453 	kHIDReportCountZeroErr = -13925;
2454 	kHIDReportSizeZeroErr = -13926;
2455 	kHIDUnmatchedDesignatorRangeErr = -13927;
2456 	kHIDUnmatchedStringRangeErr = -13928;
2457 	kHIDInvertedUsageRangeErr = -13929;
2458 	kHIDUnmatchedUsageRangeErr = -13930;
2459 	kHIDInvertedPhysicalRangeErr = -13931;
2460 	kHIDInvertedLogicalRangeErr = -13932;
2461 	kHIDBadLogicalMaximumErr = -13933;
2462 	kHIDBadLogicalMinimumErr = -13934;
2463 	kHIDUsagePageZeroErr = -13935;
2464 	kHIDEndOfDescriptorErr = -13936;
2465 	kHIDNotEnoughMemoryErr = -13937;
2466 	kHIDBadParameterErr = -13938;
2467 	kHIDNullPointerErr = -13939;
2468 	kHIDInvalidReportLengthErr = -13940;
2469 	kHIDInvalidReportTypeErr = -13941;
2470 	kHIDBadLogPhysValuesErr = -13942;
2471 	kHIDIncompatibleReportErr = -13943;
2472 	kHIDInvalidPreparsedDataErr = -13944;
2473 	kHIDNotValueArrayErr = -13945;
2474 	kHIDUsageNotFoundErr = -13946;
2475 	kHIDValueOutOfRangeErr = -13947;
2476 	kHIDBufferTooSmallErr = -13948;
2477 	kHIDNullStateErr = -13949;
2478 	kHIDBaseError = -13950;
2479 
2480 
2481 { the OT modem module may return the following error codes:}
2482 const
2483 	kModemOutOfMemory = -14000;
2484 	kModemPreferencesMissing = -14001;
2485 	kModemScriptMissing = -14002;
2486 
2487 
2488 { Multilingual Text Engine (MLTE) error codes }
2489 const
2490 	kTXNEndIterationErr = -22000; { Function was not able to iterate through the data contained by a text object}
2491 	kTXNCannotAddFrameErr = -22001; { Multiple frames are not currently supported in MLTE}
2492 	kTXNInvalidFrameIDErr = -22002; { The frame ID is invalid}
2493 	kTXNIllegalToCrossDataBoundariesErr = -22003; { Offsets specify a range that crosses a data type boundary}
2494 	kTXNUserCanceledOperationErr = -22004; { A user canceled an operation before your application completed processing it}
2495 	kTXNBadDefaultFileTypeWarning = -22005; { The text file is not in the format you specified}
2496 	kTXNCannotSetAutoIndentErr = -22006; { Auto indentation is not available when word wrapping is enabled}
2497 	kTXNRunIndexOutofBoundsErr = -22007; { An index you supplied to a function is out of bounds}
2498 	kTXNNoMatchErr = -22008; { Returned by TXNFind when a match is not found}
2499 	kTXNAttributeTagInvalidForRunErr = -22009; { Tag for a specific run is not valid (the tag's dataValue is set to this)}
2500 	kTXNSomeOrAllTagsInvalidForRunErr = -22010; { At least one of the tags given is invalid}
2501 	kTXNInvalidRunIndex = -22011; { Index is out of range for that run}
2502 	kTXNAlreadyInitializedErr = -22012; { You already called the TXNInitTextension function}
2503 	kTXNCannotTurnTSMOffWhenUsingUnicodeErr = -22013; { Your application tried to turn off the Text Services Manager when using Unicode}
2504 	kTXNCopyNotAllowedInEchoModeErr = -22014; { Your application tried to copy text that was in echo mode}
2505 	kTXNDataTypeNotAllowedErr = -22015; { Your application specified a data type that MLTE does not allow}
2506 	kTXNATSUIIsNotInstalledErr = -22016; { Indicates that ATSUI is not installed on the system}
2507 	kTXNOutsideOfLineErr = -22017; { Indicates a value that is beyond the length of the line}
2508 	kTXNOutsideOfFrameErr = -22018; { Indicates a value that is outside of the text object's frame}
2509 
2510 
2511 {Possible errors from the PrinterStatus bottleneck}
2512 const
2513 	printerStatusOpCodeNotSupportedErr = -25280;
2514 
2515 
2516 { Keychain Manager error codes }
2517 const
2518 	errKCNotAvailable = -25291;
2519 	errKCReadOnly = -25292;
2520 	errKCAuthFailed = -25293;
2521 	errKCNoSuchKeychain = -25294;
2522 	errKCInvalidKeychain = -25295;
2523 	errKCDuplicateKeychain = -25296;
2524 	errKCDuplicateCallback = -25297;
2525 	errKCInvalidCallback = -25298;
2526 	errKCDuplicateItem = -25299;
2527 	errKCItemNotFound = -25300;
2528 	errKCBufferTooSmall = -25301;
2529 	errKCDataTooLarge = -25302;
2530 	errKCNoSuchAttr = -25303;
2531 	errKCInvalidItemRef = -25304;
2532 	errKCInvalidSearchRef = -25305;
2533 	errKCNoSuchClass = -25306;
2534 	errKCNoDefaultKeychain = -25307;
2535 	errKCInteractionNotAllowed = -25308;
2536 	errKCReadOnlyAttr = -25309;
2537 	errKCWrongKCVersion = -25310;
2538 	errKCKeySizeNotAllowed = -25311;
2539 	errKCNoStorageModule = -25312;
2540 	errKCNoCertificateModule = -25313;
2541 	errKCNoPolicyModule = -25314;
2542 	errKCInteractionRequired = -25315;
2543 	errKCDataNotAvailable = -25316;
2544 	errKCDataNotModifiable = -25317;
2545 	errKCCreateChainFailed = -25318;
2546 
2547 
2548 { UnicodeUtilities error & status codes}
2549 const
2550 	kUCOutputBufferTooSmall = -25340; { Output buffer too small for Unicode string result}
2551 	kUCTextBreakLocatorMissingType = -25341; { Unicode text break error}
2552 
2553 const
2554 	kUCTSNoKeysAddedToObjectErr = -25342;
2555 	kUCTSSearchListErr = -25343;
2556 
2557 const
2558 	kUCTokenizerIterationFinished = -25344;
2559 	kUCTokenizerUnknownLang = -25345;
2560 	kUCTokenNotFound = -25346;
2561 
2562 { Multiprocessing API error codes}
2563 const
2564 	kMPIterationEndErr = -29275;
2565 	kMPPrivilegedErr = -29276;
2566 	kMPProcessCreatedErr = -29288;
2567 	kMPProcessTerminatedErr = -29289;
2568 	kMPTaskCreatedErr = -29290;
2569 	kMPTaskBlockedErr = -29291;
2570 	kMPTaskStoppedErr = -29292; { A convention used with MPThrowException.}
2571 	kMPBlueBlockingErr = -29293;
2572 	kMPDeletedErr = -29295;
2573 	kMPTimeoutErr = -29296;
2574 	kMPTaskAbortedErr = -29297;
2575 	kMPInsufficientResourcesErr = -29298;
2576 	kMPInvalidIDErr = -29299;
2577 
2578 const
2579 	kMPNanokernelNeedsMemoryErr = -29294;
2580 
2581 { StringCompare error codes (in TextUtils range)}
2582 const
2583 	kCollateAttributesNotFoundErr = -29500;
2584 	kCollateInvalidOptions = -29501;
2585 	kCollateMissingUnicodeTableErr = -29502;
2586 	kCollateUnicodeConvertFailedErr = -29503;
2587 	kCollatePatternNotFoundErr = -29504;
2588 	kCollateInvalidChar = -29505;
2589 	kCollateBufferTooSmall = -29506;
2590 	kCollateInvalidCollationRef = -29507;
2591 
2592 
2593 { FontSync OSStatus Codes }
2594 const
2595 	kFNSInvalidReferenceErr = -29580; { ref. was NULL or otherwise bad }
2596 	kFNSBadReferenceVersionErr = -29581; { ref. version is out of known range }
2597 	kFNSInvalidProfileErr = -29582; { profile is NULL or otherwise bad }
2598 	kFNSBadProfileVersionErr = -29583; { profile version is out of known range }
2599 	kFNSDuplicateReferenceErr = -29584; { the ref. being added is already in the profile }
2600 	kFNSMismatchErr = -29585; { reference didn't match or wasn't found in profile }
2601 	kFNSInsufficientDataErr = -29586; { insufficient data for the operation }
2602 	kFNSBadFlattenedSizeErr = -29587; { flattened size didn't match input or was too small }
2603 	kFNSNameNotFoundErr = -29589; { The name with the requested paramters was not found }
2604 
2605 
2606 { MacLocales error codes}
2607 const
2608 	kLocalesBufferTooSmallErr = -30001;
2609 	kLocalesTableFormatErr = -30002;
2610 	kLocalesDefaultDisplayStatus = -30029; { Requested display locale unavailable, used default}
2611 
2612 
2613 { Settings Manager (formerly known as Location Manager) Errors }
2614 const
2615 	kALMInternalErr = -30049;
2616 	kALMGroupNotFoundErr = -30048;
2617 	kALMNoSuchModuleErr = -30047;
2618 	kALMModuleCommunicationErr = -30046;
2619 	kALMDuplicateModuleErr = -30045;
2620 	kALMInstallationErr = -30044;
2621 	kALMDeferSwitchErr = -30043;
2622 	kALMRebootFlagsLevelErr = -30042;
2623 
2624 const
2625 	kALMLocationNotFoundErr = kALMGroupNotFoundErr; { Old name }
2626 
2627 
2628 { SoundSprocket Error Codes }
2629 const
2630 	kSSpInternalErr = -30340;
2631 	kSSpVersionErr = -30341;
2632 	kSSpCantInstallErr = -30342;
2633 	kSSpParallelUpVectorErr = -30343;
2634 	kSSpScaleToZeroErr = -30344;
2635 
2636 
2637 { NetSprocket Error Codes }
2638 const
2639 	kNSpInitializationFailedErr = -30360;
2640 	kNSpAlreadyInitializedErr = -30361;
2641 	kNSpTopologyNotSupportedErr = -30362;
2642 	kNSpPipeFullErr = -30364;
2643 	kNSpHostFailedErr = -30365;
2644 	kNSpProtocolNotAvailableErr = -30366;
2645 	kNSpInvalidGameRefErr = -30367;
2646 	kNSpInvalidParameterErr = -30369;
2647 	kNSpOTNotPresentErr = -30370;
2648 	kNSpOTVersionTooOldErr = -30371;
2649 	kNSpMemAllocationErr = -30373;
2650 	kNSpAlreadyAdvertisingErr = -30374;
2651 	kNSpNotAdvertisingErr = -30376;
2652 	kNSpInvalidAddressErr = -30377;
2653 	kNSpFreeQExhaustedErr = -30378;
2654 	kNSpRemovePlayerFailedErr = -30379;
2655 	kNSpAddressInUseErr = -30380;
2656 	kNSpFeatureNotImplementedErr = -30381;
2657 	kNSpNameRequiredErr = -30382;
2658 	kNSpInvalidPlayerIDErr = -30383;
2659 	kNSpInvalidGroupIDErr = -30384;
2660 	kNSpNoPlayersErr = -30385;
2661 	kNSpNoGroupsErr = -30386;
2662 	kNSpNoHostVolunteersErr = -30387;
2663 	kNSpCreateGroupFailedErr = -30388;
2664 	kNSpAddPlayerFailedErr = -30389;
2665 	kNSpInvalidDefinitionErr = -30390;
2666 	kNSpInvalidProtocolRefErr = -30391;
2667 	kNSpInvalidProtocolListErr = -30392;
2668 	kNSpTimeoutErr = -30393;
2669 	kNSpGameTerminatedErr = -30394;
2670 	kNSpConnectFailedErr = -30395;
2671 	kNSpSendFailedErr = -30396;
2672 	kNSpMessageTooBigErr = -30397;
2673 	kNSpCantBlockErr = -30398;
2674 	kNSpJoinFailedErr = -30399;
2675 
2676 
2677 { InputSprockets error codes }
2678 const
2679 	kISpInternalErr = -30420;
2680 	kISpSystemListErr = -30421;
2681 	kISpBufferToSmallErr = -30422;
2682 	kISpElementInListErr = -30423;
2683 	kISpElementNotInListErr = -30424;
2684 	kISpSystemInactiveErr = -30425;
2685 	kISpDeviceInactiveErr = -30426;
2686 	kISpSystemActiveErr = -30427;
2687 	kISpDeviceActiveErr = -30428;
2688 	kISpListBusyErr = -30429;
2689 
2690 { DrawSprockets error/warning codes }
2691 const
2692 	kDSpNotInitializedErr = -30440;
2693 	kDSpSystemSWTooOldErr = -30441;
2694 	kDSpInvalidContextErr = -30442;
2695 	kDSpInvalidAttributesErr = -30443;
2696 	kDSpContextAlreadyReservedErr = -30444;
2697 	kDSpContextNotReservedErr = -30445;
2698 	kDSpContextNotFoundErr = -30446;
2699 	kDSpFrameRateNotReadyErr = -30447;
2700 	kDSpConfirmSwitchWarning = -30448;
2701 	kDSpInternalErr = -30449;
2702 	kDSpStereoContextErr = -30450;
2703 
2704 
2705 {
2706    ***************************************************************************
2707    Find By Content errors are assigned in the range -30500 to -30539, inclusive.
2708    ***************************************************************************
2709 }
2710 const
2711 	kFBCvTwinExceptionErr = -30500; {no telling what it was}
2712 	kFBCnoIndexesFound = -30501;
2713 	kFBCallocFailed = -30502; {probably low memory}
2714 	kFBCbadParam = -30503;
2715 	kFBCfileNotIndexed = -30504;
2716 	kFBCbadIndexFile = -30505; {bad FSSpec, or bad data in file}
2717 	kFBCcompactionFailed = -30506; {V-Twin exception caught}
2718 	kFBCvalidationFailed = -30507; {V-Twin exception caught}
2719 	kFBCindexingFailed = -30508; {V-Twin exception caught}
2720 	kFBCcommitFailed = -30509; {V-Twin exception caught}
2721 	kFBCdeletionFailed = -30510; {V-Twin exception caught}
2722 	kFBCmoveFailed = -30511; {V-Twin exception caught}
2723 	kFBCtokenizationFailed = -30512; {couldn't read from document or query}
2724 	kFBCmergingFailed = -30513; {couldn't merge index files}
2725 	kFBCindexCreationFailed = -30514; {couldn't create index}
2726 	kFBCaccessorStoreFailed = -30515;
2727 	kFBCaddDocFailed = -30516;
2728 	kFBCflushFailed = -30517;
2729 	kFBCindexNotFound = -30518;
2730 	kFBCnoSearchSession = -30519;
2731 	kFBCindexingCanceled = -30520;
2732 	kFBCaccessCanceled = -30521;
2733 	kFBCindexFileDestroyed = -30522;
2734 	kFBCindexNotAvailable = -30523;
2735 	kFBCsearchFailed = -30524;
2736 	kFBCsomeFilesNotIndexed = -30525;
2737 	kFBCillegalSessionChange = -30526; {tried to add/remove vols to a session}
2738                                         {that has hits}
2739 	kFBCanalysisNotAvailable = -30527;
2740 	kFBCbadIndexFileVersion = -30528;
2741 	kFBCsummarizationCanceled = -30529;
2742 	kFBCindexDiskIOFailed = -30530;
2743 	kFBCbadSearchSession = -30531;
2744 	kFBCnoSuchHit = -30532;
2745 
2746 
2747 { QuickTime VR Errors }
2748 const
2749 	notAQTVRMovieErr = -30540;
2750 	constraintReachedErr = -30541;
2751 	callNotSupportedByNodeErr = -30542;
2752 	selectorNotSupportedByNodeErr = -30543;
2753 	invalidNodeIDErr = -30544;
2754 	invalidViewStateErr = -30545;
2755 	timeNotInViewErr = -30546;
2756 	propertyNotSupportedByNodeErr = -30547;
2757 	settingNotSupportedByNodeErr = -30548;
2758 	limitReachedErr = -30549;
2759 	invalidNodeFormatErr = -30550;
2760 	invalidHotSpotIDErr = -30551;
2761 	noMemoryNodeFailedInitialize = -30552;
2762 	streamingNodeNotReadyErr = -30553;
2763 	qtvrLibraryLoadErr = -30554;
2764 	qtvrUninitialized = -30555;
2765 
2766 
2767 { Appearance Manager Error Codes }
2768 const
2769 	themeInvalidBrushErr = -30560; { pattern index invalid }
2770 	themeProcessRegisteredErr = -30561;
2771 	themeProcessNotRegisteredErr = -30562;
2772 	themeBadTextColorErr = -30563;
2773 	themeHasNoAccentsErr = -30564;
2774 	themeBadCursorIndexErr = -30565;
2775 	themeScriptFontNotFoundErr = -30566; { theme font requested for uninstalled script system }
2776 	themeMonitorDepthNotSupportedErr = -30567; { theme not supported at monitor depth }
2777 	themeNoAppropriateBrushErr = -30568; { theme brush has no corresponding theme text color }
2778 
2779 
2780 {
2781  *  Discussion:
2782  *    Control Manager Error Codes
2783  }
2784 const
2785 {
2786    * Not exclusively a Control Manager error code. In general, this
2787    * return value means a control, window, or menu definition does not
2788    * support the message/event that underlies an API call.
2789    }
2790 	errMessageNotSupported = -30580;
2791 
2792   {
2793    * This is returned from GetControlData and SetControlData if the
2794    * control doesn't support the tag name and/or part code that is
2795    * passed in. It can also be returned from other APIs - like
2796    * SetControlFontStyle - which are wrappers around Get/SetControlData.
2797    }
2798 	errDataNotSupported = -30581;
2799 
2800   {
2801    * The control you passed to a focusing API doesn't support focusing.
2802    * This error isn't sent on Mac OS X; instead, you're likely to
2803    * receive errCouldntSetFocus or eventNotHandledErr.
2804    }
2805 	errControlDoesntSupportFocus = -30582;
2806 
2807   {
2808    * This is a variant of and serves the same purpose as
2809    * controlHandleInvalidErr. Various Control Manager APIs will return
2810    * this error if one of the passed-in controls is NULL or otherwise
2811    * invalid.
2812    }
2813 	errUnknownControl = -30584;
2814 
2815   {
2816    * The focus couldn't be set to a given control or advanced through a
2817    * hierarchy of controls. This could be because the control doesn't
2818    * support focusing, the control isn't currently embedded in a
2819    * window, or there are no focusable controls in the window when you
2820    * try to advance the focus.
2821    }
2822 	errCouldntSetFocus = -30585;
2823 
2824   {
2825    * This is returned by GetRootControl before a root control was
2826    * created for a given non-compositing window. Alternatively, you
2827    * called a Control Manager API such as ClearKeyboardFocus or
2828    * AutoEmbedControl that requires a root control, but there is no
2829    * root control on the window.
2830    }
2831 	errNoRootControl = -30586;
2832 
2833   {
2834    * This is returned by CreateRootControl on the second and successive
2835    * calls for a given window.
2836    }
2837 	errRootAlreadyExists = -30587;
2838 
2839   {
2840    * The ControlPartCode you passed to a Control Manager API is out of
2841    * range, invalid, or otherwise unsupported.
2842    }
2843 	errInvalidPartCode = -30588;
2844 
2845   {
2846    * You called CreateRootControl after creating one or more non-root
2847    * controls in a window, which is illegal; if you want an embedding
2848    * hierarchy on a given window, you must call CreateRootControl
2849    * before creating any other controls for a given window. This will
2850    * never be returned on Mac OS X, because a root control is created
2851    * automatically if it doesn't already exist the first time any
2852    * non-root control is created in a window.
2853    }
2854 	errControlsAlreadyExist = -30589;
2855 
2856   {
2857    * You passed a control that doesn't support embedding to a Control
2858    * Manager API which requires the control to support embedding.
2859    }
2860 	errControlIsNotEmbedder = -30590;
2861 
2862   {
2863    * You called GetControlData or SetControlData with a buffer whose
2864    * size does not match the size of the data you are attempting to get
2865    * or set.
2866    }
2867 	errDataSizeMismatch = -30591;
2868 
2869   {
2870    * You called TrackControl, HandleControlClick or a similar mouse
2871    * tracking API on a control that is invisible or disabled. You
2872    * cannot track controls that are invisible or disabled.
2873    }
2874 	errControlHiddenOrDisabled = -30592;
2875 
2876   {
2877    * You called EmbedControl or a similar API with the same control in
2878    * the parent and child parameters. You cannot embed a control into
2879    * itself.
2880    }
2881 	errCantEmbedIntoSelf = -30594;
2882 
2883   {
2884    * You called EmbedControl or a similiar API to embed the root
2885    * control in another control. You cannot embed the root control in
2886    * any other control.
2887    }
2888 	errCantEmbedRoot = -30595;
2889 
2890   {
2891    * You called GetDialogItemAsControl on a dialog item such as a
2892    * kHelpDialogItem that is not represented by a control.
2893    }
2894 	errItemNotControl = -30596;
2895 
2896   {
2897    * You called GetControlData or SetControlData with a buffer that
2898    * represents a versioned structure, but the version is unsupported
2899    * by the control definition. This can happen with the Tabs control
2900    * and the kControlTabInfoTag.
2901    }
2902 	controlInvalidDataVersionErr = -30597;
2903 
2904   {
2905    * You called SetControlProperty, GetControlProperty, or a similar
2906    * API with an illegal property creator OSType.
2907    }
2908 	controlPropertyInvalid = -5603;
2909 
2910   {
2911    * You called GetControlProperty or a similar API with a property
2912    * creator and property tag that does not currently exist on the
2913    * given control.
2914    }
2915 	controlPropertyNotFoundErr = -5604;
2916 
2917   {
2918    * You passed an invalid ControlRef to a Control Manager API.
2919    }
2920 	controlHandleInvalidErr = -30599;
2921 
2922 
2923 { URLAccess Error Codes }
2924 const
2925 	kURLInvalidURLReferenceError = -30770;
2926 	kURLProgressAlreadyDisplayedError = -30771;
2927 	kURLDestinationExistsError = -30772;
2928 	kURLInvalidURLError = -30773;
2929 	kURLUnsupportedSchemeError = -30774;
2930 	kURLServerBusyError = -30775;
2931 	kURLAuthenticationError = -30776;
2932 	kURLPropertyNotYetKnownError = -30777;
2933 	kURLUnknownPropertyError = -30778;
2934 	kURLPropertyBufferTooSmallError = -30779;
2935 	kURLUnsettablePropertyError = -30780;
2936 	kURLInvalidCallError = -30781;
2937 	kURLFileEmptyError = -30783;
2938 	kURLExtensionFailureError = -30785;
2939 	kURLInvalidConfigurationError = -30786;
2940 	kURLAccessNotAvailableError = -30787;
2941 	kURL68kNotSupportedError = -30788;
2942 
2943 {
2944     Error Codes for C++ Exceptions
2945 
2946         C++ exceptions cannot be thrown across certain boundaries, for example,
2947         from an event handler back to the main application.  You may use these
2948         error codes to communicate an exception through an API that only supports
2949         OSStatus error codes.  Mac OS APIs will never generate these error codes;
2950         they are reserved for developer convenience only.
2951 }
2952 const
2953 	errCppGeneral = -32000;
2954 	errCppbad_alloc = -32001; { thrown by new }
2955 	errCppbad_cast = -32002; { thrown by dynamic_cast when fails with a referenced type }
2956 	errCppbad_exception = -32003; { thrown when an exception doesn't match any catch }
2957 	errCppbad_typeid = -32004; { thrown by typeid }
2958 	errCpplogic_error = -32005;
2959 	errCppdomain_error = -32006;
2960 	errCppinvalid_argument = -32007;
2961 	errCpplength_error = -32008;
2962 	errCppout_of_range = -32009;
2963 	errCppruntime_error = -32010;
2964 	errCppoverflow_error = -32011;
2965 	errCpprange_error = -32012;
2966 	errCppunderflow_error = -32013;
2967 	errCppios_base_failure = -32014;
2968 	errCppLastSystemDefinedError = -32020;
2969 	errCppLastUserDefinedError = -32049; { -32021 through -32049 are free for developer-defined exceptions}
2970 
2971 { ComponentError codes}
2972 const
2973 	badComponentInstance = $80008001; { when cast to an OSErr this is -32767}
2974 	badComponentSelector = $80008002; { when cast to an OSErr this is -32766}
2975 
2976 
2977 const
2978 	dsBusError = 1;    {bus error}
2979 	dsAddressErr = 2;    {address error}
2980 	dsIllInstErr = 3;    {illegal instruction error}
2981 	dsZeroDivErr = 4;    {zero divide error}
2982 	dsChkErr = 5;    {check trap error}
2983 	dsOvflowErr = 6;    {overflow trap error}
2984 	dsPrivErr = 7;    {privilege violation error}
2985 	dsTraceErr = 8;    {trace mode error}
2986 	dsLineAErr = 9;    {line 1010 trap error}
2987 	dsLineFErr = 10;   {line 1111 trap error}
2988 	dsMiscErr = 11;   {miscellaneous hardware exception error}
2989 	dsCoreErr = 12;   {unimplemented core routine error}
2990 	dsIrqErr = 13;   {uninstalled interrupt error}
2991 	dsIOCoreErr = 14;   {IO Core Error}
2992 	dsLoadErr = 15;   {Segment Loader Error}
2993 	dsFPErr = 16;   {Floating point error}
2994 	dsNoPackErr = 17;   {package 0 not present}
2995 	dsNoPk1 = 18;   {package 1 not present}
2996 	dsNoPk2 = 19;    {package 2 not present}
2997 
2998 const
2999 	dsNoPk3 = 20;   {package 3 not present}
3000 	dsNoPk4 = 21;   {package 4 not present}
3001 	dsNoPk5 = 22;   {package 5 not present}
3002 	dsNoPk6 = 23;   {package 6 not present}
3003 	dsNoPk7 = 24;   {package 7 not present}
3004 	dsMemFullErr = 25;   {out of memory!}
3005 	dsBadLaunch = 26;   {can't launch file}
3006 	dsFSErr = 27;   {file system map has been trashed}
3007 	dsStknHeap = 28;   {stack has moved into application heap}
3008 	negZcbFreeErr = 33;   {ZcbFree has gone negative}
3009 	dsFinderErr = 41;   {can't load the Finder error}
3010 	dsBadSlotInt = 51;   {unserviceable slot interrupt}
3011 	dsBadSANEOpcode = 81;   {bad opcode given to SANE Pack4}
3012 	dsBadPatchHeader = 83;   {SetTrapAddress saw the �come-from� header}
3013 	menuPrgErr = 84;   {happens when a menu is purged}
3014 	dsMBarNFnd = 85;   {Menu Manager Errors}
3015 	dsHMenuFindErr = 86;   {Menu Manager Errors}
3016 	dsWDEFNotFound = 87;   {could not load WDEF}
3017 	dsCDEFNotFound = 88;   {could not load CDEF}
3018 	dsMDEFNotFound = 89;    {could not load MDEF}
3019 
3020 const
3021 	dsNoFPU = 90;   {an FPU instruction was executed and the machine doesn�t have one}
3022 	dsNoPatch = 98;   {Can't patch for particular Model Mac}
3023 	dsBadPatch = 99;   {Can't load patch resource}
3024 	dsParityErr = 101;  {memory parity error}
3025 	dsOldSystem = 102;  {System is too old for this ROM}
3026 	ds32BitMode = 103;  {booting in 32-bit on a 24-bit sys}
3027 	dsNeedToWriteBootBlocks = 104;  {need to write new boot blocks}
3028 	dsNotEnoughRAMToBoot = 105;  {must have at least 1.5MB of RAM to boot 7.0}
3029 	dsBufPtrTooLow = 106;  {bufPtr moved too far during boot}
3030 	dsVMDeferredFuncTableFull = 112;  {VM's DeferUserFn table is full}
3031 	dsVMBadBackingStore = 113;  {Error occurred while reading or writing the VM backing-store file}
3032 	dsCantHoldSystemHeap = 114;  {Unable to hold the system heap during boot}
3033 	dsSystemRequiresPowerPC = 116;  {Startup disk requires PowerPC}
3034 	dsGibblyMovedToDisabledFolder = 117;  { For debug builds only, signals that active gibbly was disabled during boot. }
3035 	dsUnBootableSystem = 118;  { Active system file will not boot on this system because it was designed only to boot from a CD. }
3036 	dsMustUseFCBAccessors = 119;  { FCBSPtr and FSFCBLen are invalid - must use FSM FCB accessor functions }
3037 	dsMacOSROMVersionTooOld = 120;  { The version of the "Mac OS ROM" file is too old to be used with the installed version of system software }
3038 	dsLostConnectionToNetworkDisk = 121;  { Lost communication with Netboot server }
3039 	dsRAMDiskTooBig = 122;  { The RAM disk is too big to boot safely; will be turned off }
3040 	dsWriteToSupervisorStackGuardPage = 128; {the supervisor stack overflowed into its guard page }
3041 	dsReinsert = 30;   {request user to reinsert off-line volume}
3042 	shutDownAlert = 42;   {handled like a shutdown error}
3043 	dsShutDownOrRestart = 20000; {user choice between ShutDown and Restart}
3044 	dsSwitchOffOrRestart = 20001; {user choice between switching off and Restart}
3045 	dsForcedQuit = 20002; {allow the user to ExitToShell, return if Cancel}
3046 	dsRemoveDisk = 20003; {request user to remove disk from manual eject drive}
3047 	dsDirtyDisk = 20004; {request user to return a manually-ejected dirty disk}
3048 	dsShutDownOrResume = 20109; {allow user to return to Finder or ShutDown}
3049 	dsSCSIWarn = 20010; {Portable SCSI adapter warning.}
3050 	dsMBSysError = 29200; {Media Bay replace warning.}
3051 	dsMBFlpySysError = 29201; {Media Bay, floppy replace warning.}
3052 	dsMBATASysError = 29202; {Media Bay, ATA replace warning.}
3053 	dsMBATAPISysError = 29203; {Media Bay, ATAPI replace warning...}
3054 	dsMBExternFlpySysError = 29204; {Media Bay, external floppy drive reconnect warning}
3055 	dsPCCardATASysError = 29205; {PCCard has been ejected while still in use. }
3056 
3057 {
3058     System Errors that are used after MacsBug is loaded to put up dialogs since these should not
3059     cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add
3060     to an existing dialog without putting up a whole new dialog
3061 }
3062 const
3063 	dsNoExtsMacsBug = -1;   {not a SysErr, just a placeholder }
3064 	dsNoExtsDisassembler = -2;   {not a SysErr, just a placeholder }
3065 	dsMacsBugInstalled = -10;  {say �MacsBug Installed�}
3066 	dsDisassemblerInstalled = -11;  {say �Disassembler Installed�}
3067 	dsExtensionsDisabled = -13;  {say �Extensions Disabled�}
3068 	dsGreeting = 40;   {welcome to Macintosh greeting}
3069 	dsSysErr = 32767; {general system error}
3070                                         {old names here for compatibility�s sake}
3071 	WDEFNFnd = dsWDEFNotFound;
3072 
3073 const
3074 	CDEFNFnd = dsCDEFNotFound;
3075 	dsNotThe1 = 31;   {not the disk I wanted}
3076 	dsBadStartupDisk = 42;   {unable to mount boot volume (sad Mac only)}
3077 	dsSystemFileErr = 43;   {can�t find System file to open (sad Mac only)}
3078 	dsHD20Installed = -12;  {say �HD20 Startup�}
3079 	mBarNFnd = -126; {system error code for MBDF not found}
3080 	fsDSIntErr = -127; {non-hardware Internal file system error}
3081 	hMenuFindErr = -127; {could not find HMenu's parent in MenuKey (wrong error code - obsolete)}
3082 	userBreak = -490; {user debugger break}
3083 	strUserBreak = -491; {user debugger break; display string on stack}
3084 	exUserBreak = -492;  {user debugger break; execute debugger commands on stack}
3085 
3086 
3087 const
3088 { DS Errors which are specific to the new runtime model introduced with PowerPC }
3089 	dsBadLibrary = 1010; { Bad shared library }
3090 	dsMixedModeFailure = 1011;  { Internal Mixed Mode Failure }
3091 
3092 
3093 {
3094     On Mac OS X, the range from 100,000 to 100,999 has been reserved for returning POSIX errno error values.
3095     Every POSIX errno value can be converted into a Mac OS X OSStatus value by adding kPOSIXErrorBase to the
3096     value of errno.  They can't be returned by anything which just returns OSErr since kPOSIXErrorBase is
3097     larger than the highest OSErr value.
3098 }
3099 const
3100 	kPOSIXErrorBase = 100000;
3101 	kPOSIXErrorEPERM = 100001; { Operation not permitted }
3102 	kPOSIXErrorENOENT = 100002; { No such file or directory }
3103 	kPOSIXErrorESRCH = 100003; { No such process }
3104 	kPOSIXErrorEINTR = 100004; { Interrupted system call }
3105 	kPOSIXErrorEIO = 100005; { Input/output error }
3106 	kPOSIXErrorENXIO = 100006; { Device not configured }
3107 	kPOSIXErrorE2BIG = 100007; { Argument list too long }
3108 	kPOSIXErrorENOEXEC = 100008; { Exec format error }
3109 	kPOSIXErrorEBADF = 100009; { Bad file descriptor }
3110 	kPOSIXErrorECHILD = 100010; { No child processes }
3111 	kPOSIXErrorEDEADLK = 100011; { Resource deadlock avoided }
3112 	kPOSIXErrorENOMEM = 100012; { Cannot allocate memory }
3113 	kPOSIXErrorEACCES = 100013; { Permission denied }
3114 	kPOSIXErrorEFAULT = 100014; { Bad address }
3115 	kPOSIXErrorENOTBLK = 100015; { Block device required }
3116 	kPOSIXErrorEBUSY = 100016; { Device busy }
3117 	kPOSIXErrorEEXIST = 100017; { File exists }
3118 	kPOSIXErrorEXDEV = 100018; { Cross-device link }
3119 	kPOSIXErrorENODEV = 100019; { Operation not supported by device }
3120 	kPOSIXErrorENOTDIR = 100020; { Not a directory }
3121 	kPOSIXErrorEISDIR = 100021; { Is a directory }
3122 	kPOSIXErrorEINVAL = 100022; { Invalid argument }
3123 	kPOSIXErrorENFILE = 100023; { Too many open files in system }
3124 	kPOSIXErrorEMFILE = 100024; { Too many open files }
3125 	kPOSIXErrorENOTTY = 100025; { Inappropriate ioctl for device }
3126 	kPOSIXErrorETXTBSY = 100026; { Text file busy }
3127 	kPOSIXErrorEFBIG = 100027; { File too large }
3128 	kPOSIXErrorENOSPC = 100028; { No space left on device }
3129 	kPOSIXErrorESPIPE = 100029; { Illegal seek }
3130 	kPOSIXErrorEROFS = 100030; { Read-only file system }
3131 	kPOSIXErrorEMLINK = 100031; { Too many links }
3132 	kPOSIXErrorEPIPE = 100032; { Broken pipe }
3133 	kPOSIXErrorEDOM = 100033; { Numerical argument out of domain }
3134 	kPOSIXErrorERANGE = 100034; { Result too large }
3135 	kPOSIXErrorEAGAIN = 100035; { Resource temporarily unavailable }
3136 	kPOSIXErrorEINPROGRESS = 100036; { Operation now in progress }
3137 	kPOSIXErrorEALREADY = 100037; { Operation already in progress }
3138 	kPOSIXErrorENOTSOCK = 100038; { Socket operation on non-socket }
3139 	kPOSIXErrorEDESTADDRREQ = 100039; { Destination address required }
3140 	kPOSIXErrorEMSGSIZE = 100040; { Message too long }
3141 	kPOSIXErrorEPROTOTYPE = 100041; { Protocol wrong type for socket }
3142 	kPOSIXErrorENOPROTOOPT = 100042; { Protocol not available }
3143 	kPOSIXErrorEPROTONOSUPPORT = 100043; { Protocol not supported }
3144 	kPOSIXErrorESOCKTNOSUPPORT = 100044; { Socket type not supported }
3145 	kPOSIXErrorENOTSUP = 100045; { Operation not supported }
3146 	kPOSIXErrorEPFNOSUPPORT = 100046; { Protocol family not supported }
3147 	kPOSIXErrorEAFNOSUPPORT = 100047; { Address family not supported by protocol family }
3148 	kPOSIXErrorEADDRINUSE = 100048; { Address already in use }
3149 	kPOSIXErrorEADDRNOTAVAIL = 100049; { Can't assign requested address }
3150 	kPOSIXErrorENETDOWN = 100050; { Network is down }
3151 	kPOSIXErrorENETUNREACH = 100051; { Network is unreachable }
3152 	kPOSIXErrorENETRESET = 100052; { Network dropped connection on reset }
3153 	kPOSIXErrorECONNABORTED = 100053; { Software caused connection abort }
3154 	kPOSIXErrorECONNRESET = 100054; { Connection reset by peer }
3155 	kPOSIXErrorENOBUFS = 100055; { No buffer space available }
3156 	kPOSIXErrorEISCONN = 100056; { Socket is already connected }
3157 	kPOSIXErrorENOTCONN = 100057; { Socket is not connected }
3158 	kPOSIXErrorESHUTDOWN = 100058; { Can't send after socket shutdown }
3159 	kPOSIXErrorETOOMANYREFS = 100059; { Too many references: can't splice }
3160 	kPOSIXErrorETIMEDOUT = 100060; { Operation timed out }
3161 	kPOSIXErrorECONNREFUSED = 100061; { Connection refused }
3162 	kPOSIXErrorELOOP = 100062; { Too many levels of symbolic links }
3163 	kPOSIXErrorENAMETOOLONG = 100063; { File name too long }
3164 	kPOSIXErrorEHOSTDOWN = 100064; { Host is down }
3165 	kPOSIXErrorEHOSTUNREACH = 100065; { No route to host }
3166 	kPOSIXErrorENOTEMPTY = 100066; { Directory not empty }
3167 	kPOSIXErrorEPROCLIM = 100067; { Too many processes }
3168 	kPOSIXErrorEUSERS = 100068; { Too many users }
3169 	kPOSIXErrorEDQUOT = 100069; { Disc quota exceeded }
3170 	kPOSIXErrorESTALE = 100070; { Stale NFS file handle }
3171 	kPOSIXErrorEREMOTE = 100071; { Too many levels of remote in path }
3172 	kPOSIXErrorEBADRPC = 100072; { RPC struct is bad }
3173 	kPOSIXErrorERPCMISMATCH = 100073; { RPC version wrong }
3174 	kPOSIXErrorEPROGUNAVAIL = 100074; { RPC prog. not avail }
3175 	kPOSIXErrorEPROGMISMATCH = 100075; { Program version wrong }
3176 	kPOSIXErrorEPROCUNAVAIL = 100076; { Bad procedure for program }
3177 	kPOSIXErrorENOLCK = 100077; { No locks available }
3178 	kPOSIXErrorENOSYS = 100078; { Function not implemented }
3179 	kPOSIXErrorEFTYPE = 100079; { Inappropriate file type or format }
3180 	kPOSIXErrorEAUTH = 100080; { Authentication error }
3181 	kPOSIXErrorENEEDAUTH = 100081; { Need authenticator }
3182 	kPOSIXErrorEPWROFF = 100082; { Device power is off }
3183 	kPOSIXErrorEDEVERR = 100083; { Device error, e.g. paper out }
3184 	kPOSIXErrorEOVERFLOW = 100084; { Value too large to be stored in data type }
3185 	kPOSIXErrorEBADEXEC = 100085; { Bad executable }
3186 	kPOSIXErrorEBADARCH = 100086; { Bad CPU type in executable }
3187 	kPOSIXErrorESHLIBVERS = 100087; { Shared library version mismatch }
3188 	kPOSIXErrorEBADMACHO = 100088; { Malformed Macho file }
3189 	kPOSIXErrorECANCELED = 100089; { Operation canceled }
3190 	kPOSIXErrorEIDRM = 100090; { Identifier removed }
3191 	kPOSIXErrorENOMSG = 100091; { No message of desired type }
3192 	kPOSIXErrorEILSEQ = 100092; { Illegal byte sequence }
3193 	kPOSIXErrorENOATTR = 100093; { Attribute not found }
3194 	kPOSIXErrorEBADMSG = 100094; { Bad message }
3195 	kPOSIXErrorEMULTIHOP = 100095; { Reserved }
3196 	kPOSIXErrorENODATA = 100096; { No message available on STREAM }
3197 	kPOSIXErrorENOLINK = 100097; { Reserved }
3198 	kPOSIXErrorENOSR = 100098; { No STREAM resources }
3199 	kPOSIXErrorENOSTR = 100099; { Not a STREAM }
3200 	kPOSIXErrorEPROTO = 100100; { Protocol error }
3201 	kPOSIXErrorETIME = 100101; { STREAM ioctl timeout }
3202 	kPOSIXErrorEOPNOTSUPP = 100102; { Operation not supported on socket }
3203 
3204 
3205 {
3206  *  SysError()
3207  *
3208  *  Availability:
3209  *    Mac OS X:         in version 10.0 and later in CoreServices.framework
3210  *    CarbonLib:        in CarbonLib 1.0 and later
3211  *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
3212  }
3213 procedure SysError( errorCode: SInt16 ); external name '_SysError';
3214 (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
3215 
3216 {$endc} {TARGET_OS_MAC}
3217 {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
3218 
3219 end.
3220 {$endc} {not MACOSALLINCLUDE}
3221