home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / D-G / File Dropper.cpt / File Dropper Stuff / FD Interface.h next >
MacBinary  |  1992-02-16  |  4.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: FD Interface.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Feb 15 19:08:12 1992, modified Sat Feb 15 19:08:12 1992, creator Think C, type ASCII, 3942 bytes "FD Interface.h" , at 0xfe6 358 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 46 44 20 49 6e 74 | 65 72 66 61 63 65 2e 68 |..FD Int|erface.h|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f 66 00 | 00 01 66 a5 c3 5b ec a5 |......f.|..f..[..|
|00000060| c3 5b ec 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.[......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7b 8a 00 00 |........|....{...|
|00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 20 46 44 20 49 6e 74 |/*****. |* FD Int|
|00000090| 65 72 66 61 63 65 2e 68 | 0d 20 2a 0d 20 2a 20 43 |erface.h|. *. * C|
|000000a0| 6f 70 79 72 69 67 68 74 | 20 a9 20 31 39 39 32 20 |opyright| . 1992 |
|000000b0| 54 72 6f 79 20 41 6e 64 | 65 72 73 6f 6e 3b 20 41 |Troy And|erson; A|
|000000c0| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|000000d0| 65 64 2e 0d 20 2a 0d 20 | 2a 20 57 72 69 74 74 65 |ed.. *. |* Writte|
|000000e0| 6e 20 62 79 20 54 72 6f | 79 20 41 6e 64 65 72 73 |n by Tro|y Anders|
|000000f0| 6f 6e 0d 20 2a 0d 20 2a | 20 48 65 61 64 65 72 20 |on. *. *| Header |
|00000100| 66 69 6c 65 20 66 6f 72 | 20 46 69 6c 65 20 44 72 |file for| File Dr|
|00000110| 6f 70 70 65 72 2c 20 77 | 69 74 68 20 61 6c 6c 20 |opper, w|ith all |
|00000120| 6f 66 20 74 68 65 20 70 | 72 6f 74 6f 74 79 70 65 |of the p|rototype|
|00000130| 73 20 61 6e 64 20 64 65 | 66 69 6e 69 74 69 6f 6e |s and de|finition|
|00000140| 73 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 69 6e |s you ne|ed to in|
|00000150| 74 65 72 66 61 63 65 0d | 20 2a 20 77 69 74 68 20 |terface.| * with |
|00000160| 74 68 65 20 46 69 6c 65 | 20 44 72 6f 70 70 65 72 |the File| Dropper|
|00000170| 20 b9 20 6c 69 62 72 61 | 72 79 2e 20 20 53 65 65 | . libra|ry. See|
|00000180| 20 74 68 65 20 63 6f 6d | 6d 65 6e 74 73 20 62 65 | the com|ments be|
|00000190| 66 6f 72 65 20 74 68 65 | 20 66 75 6e 63 74 69 6f |fore the| functio|
|000001a0| 6e 20 70 72 6f 74 6f 74 | 79 70 65 73 20 62 65 6c |n protot|ypes bel|
|000001b0| 6f 77 20 66 6f 72 0d 20 | 2a 20 65 78 70 6c 61 6e |ow for. |* explan|
|000001c0| 61 74 69 6f 6e 73 20 6f | 66 20 74 68 65 69 72 20 |ations o|f their |
|000001d0| 75 73 65 2e 20 20 53 65 | 65 20 74 68 65 20 72 65 |use. Se|e the re|
|000001e0| 61 64 20 6d 65 20 61 63 | 63 6f 6d 70 61 6e 79 69 |ad me ac|companyi|
|000001f0| 6e 67 20 74 68 69 73 20 | 66 69 6c 65 20 66 6f 72 |ng this |file for|
|00000200| 20 67 65 6e 65 72 61 6c | 20 69 6e 66 6f 72 6d 61 | general| informa|
|00000210| 74 69 6f 6e 0d 20 2a 20 | 61 62 6f 75 74 20 77 68 |tion. * |about wh|
|00000220| 61 74 20 74 68 69 73 20 | 69 73 20 61 6e 64 20 68 |at this |is and h|
|00000230| 6f 77 20 74 6f 20 75 73 | 65 20 69 74 2e 0d 20 2a |ow to us|e it.. *|
|00000240| 0d 20 2a 20 56 65 72 73 | 69 6f 6e 20 31 2e 30 a7 |. * Vers|ion 1.0.|
|00000250| 31 0d 20 2a 2a 2a 2a 2a | 2f 0d 0d 0d 23 70 72 61 |1. *****|/...#pra|
|00000260| 67 6d 61 20 6f 6e 63 65 | 0d 0d 2f 2a 2a 0d 20 2a |gma once|../**. *|
|00000270| 2a 20 6d 65 73 73 61 67 | 65 20 76 61 6c 75 65 73 |* messag|e values|
|00000280| 0d 20 2a 2a 0d 20 2a 2a | 20 54 68 65 73 65 20 61 |. **. **| These a|
|00000290| 72 65 20 74 68 65 20 76 | 61 6c 75 65 73 20 74 68 |re the v|alues th|
|000002a0| 61 74 20 77 69 6c 6c 20 | 62 65 20 70 61 73 73 65 |at will |be passe|
|000002b0| 64 20 74 6f 20 79 6f 75 | 20 76 69 61 20 74 68 65 |d to you| via the|
|000002c0| 20 6d 65 73 73 61 67 65 | 20 70 61 72 61 6d 65 74 | message| paramet|
|000002d0| 65 72 20 69 6e 0d 20 2a | 2a 20 4d 6f 64 75 6c 65 |er in. *|* Module|
|000002e0| 4d 61 69 6e 2e 0d 20 2a | 2a 2f 20 0d 20 0d 65 6e |Main.. *|*/ . .en|
|000002f0| 75 6d 20 7b 20 0d 09 65 | 53 74 61 72 74 75 70 2c |um { ..e|Startup,|
|00000300| 20 0d 09 65 41 45 49 6e | 69 74 69 61 6c 69 7a 65 | ..eAEIn|itialize|
|00000310| 2c 20 0d 09 65 53 46 49 | 6e 69 74 69 61 6c 69 7a |, ..eSFI|nitializ|
|00000320| 65 2c 20 0d 09 65 56 61 | 6c 69 64 61 74 65 46 69 |e, ..eVa|lidateFi|
|00000330| 6c 65 2c 20 0d 09 65 50 | 72 6f 63 65 73 73 46 69 |le, ..eP|rocessFi|
|00000340| 6c 65 2c 20 0d 09 65 44 | 69 73 70 6f 73 65 2c 20 |le, ..eD|ispose, |
|00000350| 0d 09 65 44 6f 41 62 6f | 75 74 42 6f 78 2c 20 0d |..eDoAbo|utBox, .|
|00000360| 09 65 51 75 69 74 74 69 | 6e 67 0d 7d 3b 0d 0d 0d |.eQuitti|ng.};...|
|00000370| 2f 2a 2a 0d 20 2a 2a 20 | 4d 6f 64 75 6c 65 44 61 |/**. ** |ModuleDa|
|00000380| 74 61 52 65 63 0d 20 2a | 2a 0d 20 2a 2a 20 41 20 |taRec. *|*. ** A |
|00000390| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 69 73 20 |pointer |to this |
|000003a0| 73 74 72 75 63 74 75 72 | 65 20 69 73 20 70 61 73 |structur|e is pas|
|000003b0| 73 65 64 20 74 6f 20 79 | 6f 75 20 69 6e 20 4d 6f |sed to y|ou in Mo|
|000003c0| 64 75 6c 65 4d 61 69 6e | 0d 20 2a 2a 2f 20 0d 20 |duleMain|. **/ . |
|000003d0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|000003e0| 7b 0d 09 46 53 53 70 65 | 63 09 2a 74 68 65 46 69 |{..FSSpe|c.*theFi|
|000003f0| 6c 65 3b 0d 09 6c 6f 6e | 67 09 72 65 66 63 6f 6e |le;..lon|g.refcon|
|00000400| 3b 0d 09 7d 20 4d 6f 64 | 75 6c 65 44 61 74 61 52 |;..} Mod|uleDataR|
|00000410| 65 63 3b 0d 0d 0d 2f 2a | 2a 0d 20 2a 2a 20 43 75 |ec;.../*|*. ** Cu|
|00000420| 73 74 6f 6d 69 7a 61 74 | 69 6f 6e 20 66 75 6e 63 |stomizat|ion func|
|00000430| 74 69 6f 6e 20 74 79 70 | 65 73 0d 20 2a 2a 0d 20 |tion typ|es. **. |
|00000440| 2a 2a 20 54 68 65 73 65 | 20 74 68 72 65 65 20 66 |** These| three f|
|00000450| 75 6e 63 74 69 6f 6e 20 | 74 79 70 65 73 20 61 72 |unction |types ar|
|00000460| 65 20 6e 65 65 64 65 64 | 20 6f 6e 6c 79 20 69 66 |e needed| only if|
|00000470| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 6f 76 65 | you wan|t to ove|
|00000480| 72 72 69 64 65 20 74 68 | 65 20 73 74 61 6e 64 61 |rride th|e standa|
|00000490| 72 64 0d 20 2a 2a 20 67 | 65 74 20 66 69 6c 65 20 |rd. ** g|et file |
|000004a0| 73 74 75 66 66 2e 0d 20 | 2a 2a 2f 0d 0d 2f 2a 0d |stuff.. |**/../*.|
|000004b0| 20 2a 20 46 6f 72 20 74 | 68 69 73 20 66 75 6e 63 | * For t|his func|
|000004c0| 74 69 6f 6e 2c 20 72 65 | 74 75 72 6e 20 54 52 55 |tion, re|turn TRU|
|000004d0| 45 20 69 66 20 74 68 65 | 46 69 6c 65 20 70 6f 69 |E if the|File poi|
|000004e0| 6e 74 73 20 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |nts to t|he file |
|000004f0| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 65 |the user| selecte|
|00000500| 64 2c 0d 20 2a 20 72 65 | 74 75 72 6e 20 46 41 4c |d,. * re|turn FAL|
|00000510| 53 45 20 69 66 20 74 68 | 65 20 75 73 65 72 20 63 |SE if th|e user c|
|00000520| 61 6e 63 65 6c 6c 65 64 | 2e 0d 20 2a 2f 0d 74 79 |ancelled|.. */.ty|
|00000530| 70 65 64 65 66 20 42 6f | 6f 6c 65 61 6e 20 09 09 |pedef Bo|olean ..|
|00000540| 28 2a 43 75 73 74 6f 6d | 47 65 74 46 53 53 70 65 |(*Custom|GetFSSpe|
|00000550| 63 46 75 6e 63 29 28 20 | 46 53 53 70 65 63 20 2a |cFunc)( |FSSpec *|
|00000560| 74 68 65 46 69 6c 65 2c | 20 6c 6f 6e 67 20 2a 72 |theFile,| long *r|
|00000570| 65 66 63 6f 6e 29 3b 0d | 0d 2f 2a 20 0d 20 2a 20 |efcon);.|./* . * |
|00000580| 54 68 65 20 6e 65 78 74 | 20 74 77 6f 20 66 75 6e |The next| two fun|
|00000590| 63 74 69 6f 6e 73 20 61 | 72 65 20 69 64 65 6e 74 |ctions a|re ident|
|000005a0| 69 63 61 6c 20 74 6f 20 | 74 68 65 20 6f 6e 65 73 |ical to |the ones|
|000005b0| 20 64 65 73 63 72 69 62 | 65 64 20 69 6e 20 49 6e | describ|ed in In|
|000005c0| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 0d 20 |side Mac|intosh. |
|000005d0| 2a 20 77 68 65 6e 20 75 | 73 69 6e 67 20 61 20 63 |* when u|sing a c|
|000005e0| 75 73 74 6f 6d 20 66 69 | 6c 65 20 66 69 6c 74 65 |ustom fi|le filte|
|000005f0| 72 20 6f 72 20 61 20 63 | 75 73 74 6f 6d 20 64 69 |r or a c|ustom di|
|00000600| 61 6c 6f 67 20 68 6f 6f | 6b 20 66 75 6e 63 74 69 |alog hoo|k functi|
|00000610| 6f 6e 20 77 69 74 68 20 | 53 46 47 65 74 46 69 6c |on with |SFGetFil|
|00000620| 65 2e 0d 20 2a 20 53 65 | 65 20 56 6f 6c 75 6d 65 |e.. * Se|e Volume|
|00000630| 20 49 2c 20 70 61 67 65 | 20 35 32 33 2e 0d 20 2a | I, page| 523.. *|
|00000640| 2f 0d 74 79 70 65 64 65 | 66 20 70 61 73 63 61 6c |/.typede|f pascal|
|00000650| 20 42 6f 6f 6c 65 61 6e | 09 28 2a 43 75 73 74 6f | Boolean|.(*Custo|
|00000660| 6d 46 69 6c 65 46 69 6c | 74 65 72 46 75 6e 63 29 |mFileFil|terFunc)|
|00000670| 28 20 66 69 6c 65 50 61 | 72 61 6d 20 2a 70 62 70 |( filePa|ram *pbp|
|00000680| 29 3b 0d 74 79 70 65 64 | 65 66 20 70 61 73 63 61 |);.typed|ef pasca|
|00000690| 6c 20 73 68 6f 72 74 09 | 28 2a 43 75 73 74 6f 6d |l short.|(*Custom|
|000006a0| 44 69 61 6c 6f 67 48 6f | 6f 6b 46 75 6e 63 29 28 |DialogHo|okFunc)(|
|000006b0| 20 73 68 6f 72 74 20 69 | 74 65 6d 2c 20 44 69 61 | short i|tem, Dia|
|000006c0| 6c 6f 67 50 74 72 20 74 | 68 65 44 69 61 6c 6f 67 |logPtr t|heDialog|
|000006d0| 29 3b 0d 0d 0d 0d 2f 2a | 2a 0d 20 2a 2a 20 43 75 |);..../*|*. ** Cu|
|000006e0| 73 74 6f 6d 69 7a 61 74 | 69 6f 6e 20 66 75 6e 63 |stomizat|ion func|
|000006f0| 74 69 6f 6e 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f |tion ins|tallatio|
|00000700| 6e 20 72 6f 75 74 69 6e | 65 73 0d 20 2a 2a 0d 20 |n routin|es. **. |
|00000710| 2a 2a 20 43 61 6c 6c 20 | 74 68 65 73 65 20 66 75 |** Call |these fu|
|00000720| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 69 6e 73 74 61 |nctions |to insta|
|00000730| 6c 6c 20 63 75 73 74 6f | 6d 20 68 61 6e 64 6c 65 |ll custo|m handle|
|00000740| 72 73 20 66 6f 72 20 74 | 68 65 20 47 65 74 46 69 |rs for t|he GetFi|
|00000750| 6c 65 2c 20 46 69 6c 65 | 46 69 6c 74 65 72 2c 20 |le, File|Filter, |
|00000760| 61 6e 64 20 44 69 61 6c | 6f 67 48 6f 6f 6b 0d 20 |and Dial|ogHook. |
|00000770| 2a 2a 20 77 68 65 6e 20 | 75 73 69 6e 67 20 74 68 |** when |using th|
|00000780| 65 20 47 65 74 46 69 6c | 65 20 69 6e 74 65 72 66 |e GetFil|e interf|
|00000790| 61 63 65 2e 0d 20 2a 2a | 2f 0d 20 0d 76 6f 69 64 |ace.. **|/. .void|
|000007a0| 20 49 6e 73 74 61 6c 6c | 43 75 73 74 6f 6d 47 65 | Install|CustomGe|
|000007b0| 74 46 53 53 70 65 63 46 | 75 6e 63 28 20 43 75 73 |tFSSpecF|unc( Cus|
|000007c0| 74 6f 6d 47 65 74 46 53 | 53 70 65 63 46 75 6e 63 |tomGetFS|SpecFunc|
|000007d0| 20 2a 74 68 65 46 75 6e | 63 74 69 6f 6e 29 3b 0d | *theFun|ction);.|
|000007e0| 76 6f 69 64 20 49 6e 73 | 74 61 6c 6c 43 75 73 74 |void Ins|tallCust|
|000007f0| 6f 6d 46 69 6c 65 46 69 | 6c 74 65 72 46 75 6e 63 |omFileFi|lterFunc|
|00000800| 28 20 43 75 73 74 6f 6d | 46 69 6c 65 46 69 6c 74 |( Custom|FileFilt|
|00000810| 65 72 46 75 6e 63 20 2a | 74 68 65 46 75 6e 63 74 |erFunc *|theFunct|
|00000820| 69 6f 6e 29 3b 0d 76 6f | 69 64 20 49 6e 73 74 61 |ion);.vo|id Insta|
|00000830| 6c 6c 43 75 73 74 6f 6d | 44 69 61 6c 6f 67 48 6f |llCustom|DialogHo|
|00000840| 6f 6b 46 75 6e 63 28 20 | 43 75 73 74 6f 6d 44 69 |okFunc( |CustomDi|
|00000850| 61 6c 6f 67 48 6f 6f 6b | 46 75 6e 63 20 2a 74 68 |alogHook|Func *th|
|00000860| 65 46 75 6e 63 74 69 6f | 6e 29 3b 0d 0d 2f 2a 2a |eFunctio|n);../**|
|00000870| 0d 20 2a 2a 20 43 75 73 | 74 6f 6d 20 6d 65 73 73 |. ** Cus|tom mess|
|00000880| 61 67 65 20 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |age inst|allation|
|00000890| 20 72 6f 75 74 69 6e 65 | 0d 20 2a 2a 0d 20 2a 2a | routine|. **. **|
|000008a0| 20 43 61 6c 6c 20 74 68 | 69 73 20 66 75 6e 63 74 | Call th|is funct|
|000008b0| 69 6f 6e 20 74 6f 20 73 | 65 74 20 74 68 65 20 6d |ion to s|et the m|
|000008c0| 65 73 73 61 67 65 20 69 | 6e 20 74 68 65 20 73 74 |essage i|n the st|
|000008d0| 61 74 75 73 20 64 69 61 | 6c 6f 67 20 74 68 61 74 |atus dia|log that|
|000008e0| 20 69 73 20 75 70 20 77 | 68 65 6e 20 6f 70 65 72 | is up w|hen oper|
|000008f0| 61 74 69 6e 67 0d 20 2a | 2a 20 6f 6e 20 6d 6f 72 |ating. *|* on mor|
|00000900| 65 20 74 68 61 6e 20 6f | 6e 65 20 66 69 6c 65 2e |e than o|ne file.|
|00000910| 0d 20 2a 2a 2f 0d 20 0d | 76 6f 69 64 20 53 65 74 |. **/. .|void Set|
|00000920| 43 75 73 74 6f 6d 4d 65 | 73 73 61 67 65 28 20 53 |CustomMe|ssage( S|
|00000930| 74 72 69 6e 67 50 74 72 | 20 74 68 65 4d 65 73 73 |tringPtr| theMess|
|00000940| 61 67 65 29 3b 09 2f 2a | 20 74 68 65 4d 65 73 73 |age);./*| theMess|
|00000950| 61 67 65 20 69 73 20 61 | 20 70 61 73 63 61 6c 20 |age is a| pascal |
|00000960| 73 74 72 69 6e 67 20 2a | 2f 0d 0d 0d 2f 2a 2a 0d |string *|/.../**.|
|00000970| 20 2a 2a 20 4d 6f 64 75 | 6c 65 4d 61 69 6e 0d 20 | ** Modu|leMain. |
|00000980| 2a 2a 0d 20 2a 2a 20 54 | 68 69 73 20 69 73 20 74 |**. ** T|his is t|
|00000990| 68 65 20 65 6e 74 72 79 | 70 6f 69 6e 74 20 69 6e |he entry|point in|
|000009a0| 74 6f 20 79 6f 75 72 20 | 70 61 72 74 20 6f 66 20 |to your |part of |
|000009b0| 74 68 65 20 63 6f 64 65 | 2e 0d 20 2a 2a 2f 0d 0d |the code|.. **/..|
|000009c0| 42 6f 6f 6c 65 61 6e 20 | 4d 6f 64 75 6c 65 4d 61 |Boolean |ModuleMa|
|000009d0| 69 6e 28 20 73 68 6f 72 | 74 20 6d 65 73 73 61 67 |in( shor|t messag|
|000009e0| 65 2c 20 4d 6f 64 75 6c | 65 44 61 74 61 52 65 63 |e, Modul|eDataRec|
|000009f0| 20 2a 6d 6f 64 75 6c 65 | 44 61 74 61 29 3b 0d 0d | *module|Data);..|
|00000a00| 0d 0d 0d 2f 2a 2a 0d 20 | 2a 2a 20 55 73 65 66 75 |.../**. |** Usefu|
|00000a10| 6c 20 55 74 69 6c 69 74 | 69 65 73 0d 20 2a 2a 0d |l Utilit|ies. **.|
|00000a20| 20 2a 2a 20 59 6f 75 20 | 6d 61 79 20 66 69 6e 64 | ** You |may find|
|00000a30| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | the fol|lowing f|
|00000a40| 75 6e 63 74 69 6f 6e 73 | 20 75 73 65 66 75 6c 2c |unctions| useful,|
|00000a50| 20 61 6e 64 20 61 72 65 | 20 66 72 65 65 20 74 6f | and are| free to|
|00000a60| 20 75 73 65 20 74 68 65 | 6d 2e 0d 20 2a 2a 2f 0d | use the|m.. **/.|
|00000a70| 0d 2f 2a 0d 20 2a 20 54 | 68 65 73 65 20 76 61 6c |./*. * T|hese val|
|00000a80| 75 65 73 20 63 61 6e 20 | 62 65 20 70 61 73 73 65 |ues can |be passe|
|00000a90| 64 20 74 6f 20 45 72 72 | 6f 72 41 6c 65 72 74 2c |d to Err|orAlert,|
|00000aa0| 20 62 75 74 20 61 72 65 | 20 6d 65 61 6e 69 6e 67 | but are| meaning|
|00000ab0| 6c 65 73 73 20 74 6f 20 | 46 61 69 6c 4f 53 45 72 |less to |FailOSEr|
|00000ac0| 72 0d 20 2a 2f 0d 74 79 | 70 65 64 65 66 20 65 6e |r. */.ty|pedef en|
|00000ad0| 75 6d 20 7b 0d 09 65 57 | 72 6f 6e 67 4d 61 63 68 |um {..eW|rongMach|
|00000ae0| 69 6e 65 09 3d 20 31 2c | 0d 09 65 53 6d 61 6c 6c |ine.= 1,|..eSmall|
|00000af0| 53 69 7a 65 2c 0d 09 65 | 4e 6f 4d 65 6d 6f 72 79 |Size,..e|NoMemory|
|00000b00| 2c 0d 09 65 42 61 64 52 | 65 73 6f 75 72 63 65 46 |,..eBadR|esourceF|
|00000b10| 69 6c 65 2c 0d 09 65 41 | 70 70 6c 65 45 76 65 6e |ile,..eA|ppleEven|
|00000b20| 74 45 72 72 6f 72 2c 0d | 09 65 4f 53 45 72 72 6f |tError,.|.eOSErro|
|00000b30| 72 2c 0d 09 65 43 61 6e | 74 52 65 61 64 46 69 6c |r,..eCan|tReadFil|
|00000b40| 65 2c 0d 09 65 4d 6f 64 | 75 6c 65 45 72 72 6f 72 |e,..eMod|uleError|
|00000b50| 0d 7d 45 72 72 6f 72 54 | 79 70 65 3b 0d 20 0d 20 |.}ErrorT|ype;. . |
|00000b60| 0d 09 2f 2a 20 0d 09 20 | 2a 20 50 75 74 73 20 75 |../* .. |* Puts u|
|00000b70| 70 20 61 6e 20 61 6c 65 | 72 74 20 66 6f 72 20 74 |p an ale|rt for t|
|00000b80| 68 65 20 75 73 65 72 20 | 77 69 74 68 20 61 20 6d |he user |with a m|
|00000b90| 65 73 73 61 67 65 20 63 | 6f 72 72 65 73 70 6f 6e |essage c|orrespon|
|00000ba0| 64 69 6e 67 20 74 6f 20 | 65 72 72 6f 72 2c 20 66 |ding to |error, f|
|00000bb0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 0d 09 20 2a 20 |ollowed |by .. * |
|00000bc0| 61 50 53 74 72 69 6e 67 | 2e 20 20 57 68 65 6e 20 |aPString|. When |
|00000bd0| 74 68 65 20 75 73 65 72 | 20 63 6c 69 63 6b 73 20 |the user| clicks |
|00000be0| 4f 4b 2c 20 69 74 20 72 | 65 74 75 72 6e 73 2c 20 |OK, it r|eturns, |
|00000bf0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000c00| 64 6f 65 73 20 6e 6f 74 | 20 71 75 69 74 2e 0d 09 |does not| quit...|
|00000c10| 20 2a 20 61 50 53 74 72 | 69 6e 67 20 63 61 6e 20 | * aPStr|ing can |
|00000c20| 62 65 20 4e 55 4c 4c 2e | 0d 09 20 2a 2f 0d 76 6f |be NULL.|.. */.vo|
|00000c30| 69 64 20 45 72 72 6f 72 | 41 6c 65 72 74 28 20 45 |id Error|Alert( E|
|00000c40| 72 72 6f 72 54 79 70 65 | 20 65 72 72 6f 72 2c 20 |rrorType| error, |
|00000c50| 53 74 72 69 6e 67 50 74 | 72 20 61 50 53 74 72 69 |StringPt|r aPStri|
|00000c60| 6e 67 29 3b 0d 0d 0d 09 | 2f 2a 20 0d 09 20 2a 20 |ng);....|/* .. * |
|00000c70| 50 75 74 73 20 75 70 20 | 61 6e 20 61 6c 65 72 74 |Puts up |an alert|
|00000c80| 20 66 6f 72 20 74 68 65 | 20 75 73 65 72 20 77 69 | for the| user wi|
|00000c90| 74 68 20 61 50 53 74 72 | 69 6e 67 20 61 73 20 74 |th aPStr|ing as t|
|00000ca0| 68 65 20 6d 65 73 73 61 | 67 65 2e 20 20 57 68 65 |he messa|ge. Whe|
|00000cb0| 6e 20 74 68 65 20 75 73 | 65 72 20 63 6c 69 63 6b |n the us|er click|
|00000cc0| 73 20 4f 4b 2c 0d 09 20 | 2a 20 69 74 20 72 65 74 |s OK,.. |* it ret|
|00000cd0| 75 72 6e 73 2c 20 74 68 | 65 20 61 70 70 6c 69 63 |urns, th|e applic|
|00000ce0| 61 74 69 6f 6e 20 64 6f | 65 73 20 6e 6f 74 20 71 |ation do|es not q|
|00000cf0| 75 69 74 2e 0d 09 20 2a | 2f 0d 76 6f 69 64 20 53 |uit... *|/.void S|
|00000d00| 68 6f 77 45 72 72 6f 72 | 28 20 53 74 72 69 6e 67 |howError|( String|
|00000d10| 50 74 72 20 61 50 53 74 | 72 69 6e 67 29 3b 0d 0d |Ptr aPSt|ring);..|
|00000d20| 0d 09 2f 2a 0d 09 20 2a | 20 49 66 20 65 72 72 6f |../*.. *| If erro|
|00000d30| 72 20 69 73 20 30 2c 20 | 74 68 69 73 20 66 75 6e |r is 0, |this fun|
|00000d40| 63 74 69 6f 6e 20 73 69 | 6d 70 6c 79 20 72 65 74 |ction si|mply ret|
|00000d50| 75 72 6e 73 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |urns, ot|herwise |
|00000d60| 69 74 20 70 75 74 73 20 | 75 70 20 61 6e 0d 09 20 |it puts |up an.. |
|00000d70| 2a 20 61 6c 65 72 74 20 | 66 6f 72 20 74 68 65 20 |* alert |for the |
|00000d80| 75 73 65 72 20 74 68 61 | 74 20 73 61 79 73 20 74 |user tha|t says t|
|00000d90| 68 61 74 20 61 6e 20 4f | 53 20 45 72 72 6f 72 20 |hat an O|S Error |
|00000da0| 6f 63 63 75 72 72 65 64 | 2c 20 66 6f 6c 6c 6f 77 |occurred|, follow|
|00000db0| 65 64 20 62 79 20 74 68 | 65 20 0d 09 20 2a 20 76 |ed by th|e .. * v|
|00000dc0| 61 6c 75 65 20 6f 66 20 | 65 72 72 6f 72 2e 20 20 |alue of |error. |
|00000dd0| 57 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 63 6c |When the| user cl|
|00000de0| 69 63 6b 73 20 4f 4b 2c | 20 74 68 65 20 61 70 70 |icks OK,| the app|
|00000df0| 6c 69 63 61 74 69 6f 6e | 20 71 75 69 74 73 2e 20 |lication| quits. |
|00000e00| 20 54 68 65 20 0d 09 20 | 2a 20 65 51 75 69 74 74 | The .. |* eQuitt|
|00000e10| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 64 6f 65 73 |ing mess|age does|
|00000e20| 20 4e 4f 54 20 67 65 74 | 20 73 65 6e 74 2e 0d 09 | NOT get| sent...|
|00000e30| 20 2a 2f 0d 76 6f 69 64 | 20 46 61 69 6c 4f 53 45 | */.void| FailOSE|
|00000e40| 72 72 28 20 4f 53 45 72 | 72 20 65 72 72 6f 72 29 |rr( OSEr|r error)|
|00000e50| 3b 0d 0d 0d 09 2f 2a 20 | 0d 09 20 2a 20 52 65 74 |;..../* |.. * Ret|
|00000e60| 75 72 6e 73 20 54 52 55 | 45 20 69 66 20 74 68 65 |urns TRU|E if the|
|00000e70| 20 6b 65 79 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | key cor|respondi|
|00000e80| 6e 67 20 74 6f 20 74 68 | 65 4b 65 79 43 6f 64 65 |ng to th|eKeyCode|
|00000e90| 20 69 73 20 62 65 69 6e | 67 20 70 72 65 73 73 65 | is bein|g presse|
|00000ea0| 64 0d 09 20 2a 20 61 74 | 20 74 68 65 20 74 69 6d |d.. * at| the tim|
|00000eb0| 65 20 6f 66 20 74 68 65 | 20 63 61 6c 6c 0d 09 20 |e of the| call.. |
|00000ec0| 2a 2f 0d 42 6f 6f 6c 65 | 61 6e 20 4b 65 79 49 73 |*/.Boole|an KeyIs|
|00000ed0| 44 6f 77 6e 28 20 73 68 | 6f 72 74 20 74 68 65 4b |Down( sh|ort theK|
|00000ee0| 65 79 43 6f 64 65 29 3b | 0d 0d 0d 09 2f 2a 0d 09 |eyCode);|..../*..|
|00000ef0| 20 2a 20 43 6f 6e 73 74 | 61 6e 74 73 20 74 68 61 | * Const|ants tha|
|00000f00| 74 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 69 6e |t can be| used in|
|00000f10| 20 63 61 6c 6c 73 20 74 | 6f 20 4b 65 79 49 73 44 | calls t|o KeyIsD|
|00000f20| 6f 77 6e 0d 09 20 2a 2f | 0d 23 64 65 66 69 6e 65 |own.. */|.#define|
|00000f30| 09 54 41 42 5f 4b 45 59 | 09 09 09 28 30 78 33 30 |.TAB_KEY|...(0x30|
|00000f40| 29 0d 23 64 65 66 69 6e | 65 09 53 50 41 43 45 5f |).#defin|e.SPACE_|
|00000f50| 4b 45 59 09 09 28 30 78 | 33 31 29 0d 23 64 65 66 |KEY..(0x|31).#def|
|00000f60| 69 6e 65 20 43 4f 4d 4d | 41 4e 44 5f 4b 45 59 09 |ine COMM|AND_KEY.|
|00000f70| 09 28 30 78 33 37 29 0d | 23 64 65 66 69 6e 65 09 |.(0x37).|#define.|
|00000f80| 53 48 49 46 54 5f 4b 45 | 59 09 09 28 30 78 33 38 |SHIFT_KE|Y..(0x38|
|00000f90| 29 0d 23 64 65 66 69 6e | 65 09 43 41 50 53 5f 4c |).#defin|e.CAPS_L|
|00000fa0| 4f 43 4b 5f 4b 45 59 09 | 28 30 78 33 39 29 0d 23 |OCK_KEY.|(0x39).#|
|00000fb0| 64 65 66 69 6e 65 20 4f | 50 54 49 4f 4e 5f 4b 45 |define O|PTION_KE|
|00000fc0| 59 09 09 28 30 78 33 41 | 29 0d 23 64 65 66 69 6e |Y..(0x3A|).#defin|
|00000fd0| 65 09 43 4f 4e 54 52 4f | 4c 5f 4b 45 59 09 09 28 |e.CONTRO|L_KEY..(|
|00000fe0| 30 78 33 42 29 0d 00 00 | 00 00 00 00 00 00 00 00 |0x3B)...|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 01 00 00 00 01 34 | 00 00 00 34 00 00 00 32 |.......4|...4...2|
|00001010| 86 01 2b f2 4a 4f 3a 01 | 1a 00 6d 01 67 3e 4a 20 |..+.JO:.|..m.g>J |
|00001020| 02 d6 86 01 13 a8 42 01 | 60 20 43 69 20 03 02 67 |......B.|` Ci ..g|
|00001030| 0e 46 44 20 49 6e 74 65 | 72 66 61 63 65 2e 68 46 |.FD Inte|rface.hF|
|00001040| 02 00 00 00 54 45 58 54 | 4b 41 48 4c 01 00 00 00 |....TEXT|KAHL....|
|00001050| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 00 00 00 |..TEXTKA|HL......|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 a5 b9 a9 72 00 00 | 0f 66 00 00 01 66 74 01 |.....r..|.f...ft.|
|00001080| ff 34 59 01 ff 34 2f 5e | 3a 02 28 00 0c 84 4b 01 |.4Y..4/^|:.(...K.|
|00001090| 2d e6 67 03 66 1a b7 ed | fe 0c a5 55 7a 01 ff 9c |-.g.f...|...Uz...|
|000010a0| 86 01 2c 42 30 01 1b 52 | 6d 02 60 1e 0c 84 4b 03 |..,B0..R|m.`...K.|
|000010b0| 28 0a 66 12 4a 06 d8 55 | 7a 04 ff 9c 60 0a 2d 47 |(.f.J..U|z...`.-G|
|000010c0| ff 9c c3 02 2d 47 ff 9c | 35 5b 01 ff 66 57 01 ff |....-G..|5[..fW..|
|000010d0| 3c 50 01 11 fa 67 03 1c | 2d f6 85 67 5e 55 7a 01 |<P...g..|-..g^Uz.|
|000010e0| ff cc 7a 01 ff d0 7a 01 | ff d4 7a 02 ff d8 1d 7c |..z...z.|..z....||
|000010f0| 66 23 01 4a 05 ec 57 01 | ff de 60 4c 01 fd e6 6d |f#.J..W.|..`L...m|
|00001100| 00 00 00 30 00 03 00 00 | 05 d1 00 00 05 d8 07 42 |...0....|.......B|
|00001110| 6f 6f 6c 65 61 6e 00 00 | 04 b6 00 00 04 bd 07 42 |oolean..|.......B|
|00001120| 6f 6f 6c 65 61 6e 00 00 | 06 12 00 00 06 17 05 73 |oolean..|.......s|
|00001130| 68 6f 72 74 00 00 01 00 | 00 00 01 34 00 00 00 34 |hort....|...4...4|
|00001140| 00 00 00 32 00 54 71 40 | 14 92 00 00 00 1c 00 32 |...2.Tq@|.......2|
|00001150| 00 00 4d 50 53 52 00 00 | 00 0a 03 ef ff ff 00 00 |..MPSR..|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+